Value type that can be specified as the value for an HTML/SVG attribute.
Note
All attribute values are strings when they make it to the DOM.
This represents the value type that can be assigned to attributes using
setAttribute and setAttributes as well as the return value for
attributes when using getAttribute and getAttributes.
It's a convenience mechanism to avoid stringifying/parsing attribute values.
Value type that can be specified as the value for an HTML/SVG attribute.
All attribute values are strings when they make it to the DOM. This represents the value type that can be assigned to attributes using
setAttribute
andsetAttributes
as well as the return value for attributes when usinggetAttribute
andgetAttributes
. It's a convenience mechanism to avoid stringifying/parsing attribute values.