From 504abff4bc6f9e1c9fdc7ee1cc45c6eca882658f Mon Sep 17 00:00:00 2001
From: Krzysztof Kotowicz 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]]
@@ -6357,7 +6358,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.
@@ -6409,13 +6411,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.
-
-
+
-
+
@@ -6479,7 +6485,8 @@ string namespace (default null):
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. @@ -6492,9 +6499,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.