diff --git a/dom.bs b/dom.bs index 198f67278..7e2db7139 100644 --- a/dom.bs +++ b/dom.bs @@ -52,7 +52,8 @@ spec:html; type:element
This specification depends on the Infra Standard. [[!INFRA]]
Some of the terms used in this specification are defined in Encoding, -Selectors, Trusted Types, Web IDL, XML, and Namespaces in XML. +Selectors, Trusted Types, Web IDL, XML, and +Namespaces in XML. [[!ENCODING]] [[!SELECTORS4]] [[!TRUSTED-TYPES]] @@ -6358,7 +6359,8 @@ given a document, localName, namespace, and opt
Let oldValue be attribute's value.
Validate and set attribute value value for attribute, with attribute's element. +
Validate and set attribute value value for attribute, with + attribute's element.
Handle attribute changes for attribute with attribute's element, oldValue, and value. @@ -6410,13 +6412,17 @@ steps: value.
To validate and set attribute value value for an attribute attribute, with element element, run these steps: +
To validate and set attribute value +value for an attribute attribute, with element +element, run these steps: + +
Let validValue be the result of calling + Get Trusted Types-compliant attribute value for attribute, with + element and value. [[!TRUSTED-TYPES]] -
Let validValue be the result of calling Get Trusted Types-compliant attribute value - for attribute, with element and value.[[!TRUSTED-TYPES]]
Set attribute's value to validValue. -
If oldAttr is attr, return attr. -
Validate and set attribute value newAttr's value for newAttr with element. +
Validate and set attribute value newAttr's value for + newAttr with element.
If oldAttr is non-null, then replace oldAttr with attr. @@ -6493,9 +6500,9 @@ string namespace (default null):
To set an attribute value given an -element element, a string localName, a string or TrustedType value, -an optional null or string prefix (default null), and an optional null or string -namespace (default null): +element element, a string localName, a string or {{TrustedType}} +value, an optional null or string prefix (default null), and an optional null +or string namespace (default null):
Set attribute to a new attribute whose namespace is namespace, namespace prefix is prefix, - local name is localName and - node document is element's node document. + local name is localName and node document is + element's node document. + +
Validate and set attribute value value for attribute with + element. -
Validate and set attribute value value for attribute with element. +
Append attribute to element. -
Append attribute to element
Return.
If attribute is null, then: -
Set attribute to a new attribute whose - local name is qualifiedName and node document is this's node document. -
Validate and set attribute value value for attribute, with this. -
Return. -
Set attribute to a new attribute whose local name is + qualifiedName and node document is this's + node document. + +
Validate and set attribute value value for attribute, + with this. + +
Return. +
Change attribute to value.