Skip to main content

BOOLEAN_ATTRIBUTES

Constant BOOLEAN_ATTRIBUTES 

Source
pub const BOOLEAN_ATTRIBUTES: &[&str];
Expand description

The HTML BOOLEAN attributes: their state is their PRESENCE, and the value is ignored.

disabled="false" disables the control in every browser there is — so a page that renders a Bool false into one of these as a string ships the opposite of what its author wrote, and nothing about the page looks wrong. Held as a list rather than guessed from the value, because HTML keys the rule on the attribute NAME.