UNPKG

rimmel

Version:

A Streams-Oriented UI library for the Rx.Observable Universe

34 lines (32 loc) 1.02 kB
// List of HTML boolean attributes // https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML // These enable a certain functionality by their mere presence in a tag. // E.G.: <input disabled="false"> is still disabled, which is unintuitive. // <input disabled="${stream}"> should really set or unset the disabled state depending on the stream's last emitted value! // If you don't like this behaviour, we have a "rml" prefixed set of such attributes, that actually behave like booleans // TODO: review, see if we can convert to a type... don't want all these in the bundles const BOOLEAN_ATTRIBUTES = new Set([ 'async', 'autofocus', 'autoplay', 'checked', 'controls', 'default', 'defer', 'disabled', 'formnovalidate', 'hidden', 'ismap', 'loop', 'multiple', 'muted', 'nomodule', 'novalidate', 'open', 'readonly', 'required', 'reversed', 'selected' ]); export { BOOLEAN_ATTRIBUTES }; //# sourceMappingURL=boolean-attributes.js.map