From 8f2d7e47ea04017bfa76fbf3999186d6ecab1b46 Mon Sep 17 00:00:00 2001
From: Alice Boxhall DOMTokenList
object whose associated element is the element in question and
whose associated attribute's local name is the name of the attribute in question.
If a reflecting IDL attribute attr has the type Element
,
- or an interface that inherits from Element
, then:
+
If a reflecting IDL attribute attr has the type
, or an interface that inherits from Element
?
, then:
Element
?
This attribute defines an internal slot, [[attrAssociatedElement]], on the attribute's element. The initial value for this slot is null.
If the content attribute is set directly (such as via Element.setAttribute()
), the value for the IDL attribute is reset to null.
The following attribute change + step is used to synchronize between the content attribute and the IDL attribute:
+If localName is associated attribute’s local name, and namespace + is null, reset [[attrAssociatedElement]] to null.
If a reflecting IDL attribute attr has the type sequence<
, or Element
>sequence<T>
where
- T inherits from Element
, then:
Element
>?, or sequence<T>?
where T inherits from
+ Element
, then:
This attribute defines an internal slot, [[attrAssociatedElements]], on the @@ -7447,10 +7455,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Otherwise, let elements be an empty list.
For each id in the set of space-separated - tokens:
+Let tokens be the content attribute's value, split on ASCII whitespace.
For each id in tokens:
Let candidate be the first element within the content attribute's elements node document's descendants whose ID is @@ -7527,8 +7536,14 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
If the content attribute is set directly (such as via Element.setAttribute()
), the value for the IDL attribute is reset to null.
The following attribute change + step is used to synchronize between the content attribute and the IDL attribute:
+If localName is associated attribute’s local name, and namespace + is null, reset [[attrAssociatedElements]] to null.