AttributeValue: boolean | number | string | any[] | Record<number | string, any>

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.