From 7c631d74fd6c4eb7aef478107da60624f46ca150 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren A reflected content attribute name is a string. When the reflected
target is an element, it represents the local name of a content attribute whose namespace
is null. When the reflected target is an ElementInternals
object, it
- represents a key of the internal content attribute map.
A reflected IDL attribute can be defined to reflect a reflected
@@ -8125,20 +8126,21 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
- If a reflected IDL attribute attr has the type If a reflected IDL attribute has the type Reflected targets that attr appears on
- have an explicitly set attr-element, which is a weak reference to an
- element or null. It is initially null. attr is the reflected content attribute name. Its reflected target has an explicitly set
+ attr-element, which is a weak reference to an element or null. It is initially
+ null. Reflected targets that attr appears on have
- an attr-associated element. To
- compute the attr-associated element for such a reflected
- target reflectedTarget: Its reflected target has an attr-associated element. To compute the attr-associated
+ element for such a reflected target reflectedTarget: Let element be the result of running reflectedTarget's get
@@ -8221,8 +8223,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
attribute: If localName is not the reflected content attribute name or
- namespace is not null, then return. If localName is not attr or namespace is not null, then
+ return. Set element's explicitly set attr-element to
null.T?
, where T is either Element
or an
- interface that inherits from Element
, then:
+ T?
,
+ where T is either Element
or an interface that inherits from
+ Element
, then:
-
-
Element
" for
consistency.
If a reflected IDL attribute attr has the type If a reflected IDL attribute has the type
FrozenArray<T>?
, where T is either
Element
or an interface that inherits from Element
, then:
Reflected targets that attr appears on - have explicitly set attr-elements, which is either a list of - weak references to elements or null. It is initially null.
attr is the reflected content attribute name.
Reflected targets that attr appears on
- have cached attr-associated elements, which is a FrozenArray<T>?
. It is initially null.
Its reflected target has an explicitly set + attr-elements, which is either a list of weak references to + elements or null. It is initially null.
Its reflected target has a cached attr-associated
+ elements, which is a FrozenArray<T>?
. It is
+ initially null.
Reflected targets that attr appears on have - attr-associated elements. To compute - the attr-associated elements for such a reflected target +
Its reflected target has an attr-associated elements. To compute the + attr-associated elements for such a reflected target reflectedTarget:
If localName is not the reflected content attribute name, or - namespace is not null, then return.
If localName is not attr or namespace is not null, then + return.
Set element's explicitly set attr-elements to null.
If map[stateOrProperty] exists, then return it.
If element's attached internals is non-null:
+ +If element's attached internals's stateOrProperty-associated element exists, then return its + value.
If element's attached internals's stateOrProperty-associated elements exists, then return its + value.
Return the default value for stateOrProperty.
Each HTMLElement
has an attached internals boolean, initially
- false.
Each HTMLElement
has an attached internals (null or an
+ ElementInternals
object), initially null.
The attachInternals()
method steps are:
NotSupportedError
" DOMException
.
- If this's attached internals is true, then throw an +
If this's attached internals is non-null, then throw an
"NotSupportedError
" DOMException
.
If this's custom element state is not "precustomized
" or "custom
", then throw a
"NotSupportedError
" DOMException
.
Set this's attached internals to true.
Set this's attached internals to a new
+ ElementInternals
instance whose target
+ element is this.
Return a new ElementInternals
instance whose target element is this.
Return this's attached internals.
ElementInternals
interface