Expand description
Attribute-name ↔ property-name mapping for irregular HTML attributes. Attribute-name ↔ property-name mapping for irregular HTML attributes.
Some HTML attributes use concatenated lowercase names that do not follow standard camelCase-to-kebab-case conversion rules. This module provides lookup tables covering two categories:
- Multi-word ARIA attributes — e.g.,
aria-describedby↔ariaDescribedBy, per the ARIAMixin specification. - HTML global/element attributes — e.g.,
readonly↔readOnly,tabindex↔tabIndex.
Both directions are generated from a single list via
[define_attr_property_mappings!] so they cannot drift.
Functions§
- attribute_
to_ camel - Convert an HTML attribute name to its camelCase property name.
- attribute_
to_ property - Map an HTML attribute to its camelCase property name.
- camel_
to_ kebab - Convert a camelCase property name to its HTML attribute name.
- property_
to_ attribute - Map a camelCase property name to its HTML attribute.