Module attr

Source
Expand description

Parsed representations of DOM attributes.

Structs§

AttrIdentifier
A struct that uniquely identifies an element’s attribute.

Enums§

AttrValue
LengthOrPercentageOrAuto

Constants§

UNSIGNED_LONG_MAX 🔒

Functions§

do_parse_integer 🔒
Shared implementation to parse an integer according to https://html.spec.whatwg.org/multipage/#rules-for-parsing-integers or https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-negative-integers
parse_double
Parse a floating-point number according to https://html.spec.whatwg.org/multipage/#rules-for-parsing-floating-point-number-values
parse_integer
Parse an integer according to https://html.spec.whatwg.org/multipage/#rules-for-parsing-integers.
parse_legacy_color
Parses a legacy color. If unparseable, Err is returned.
parse_length
Parses a dimension value. If unparseable, Auto is returned.
parse_nonzero_length
https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-zero-dimension-values
parse_unsigned_integer
Parse an integer according to https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-negative-integers