From d6b3b5af4ab92a5d9a10be1f31911d9175346e95 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Thu, 13 Jun 2024 17:21:58 +0200 Subject: [PATCH] Reintroduce infrastructure changes --- dom.bs | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/dom.bs b/dom.bs index 473c4a43..0fc9bca7 100644 --- a/dom.bs +++ b/dom.bs @@ -52,9 +52,11 @@ 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, Web IDL, XML, and Namespaces in XML. +Selectors, Trusted Types, Web IDL, XML, and +Namespaces in XML. [[!ENCODING]] [[!SELECTORS4]] +[[!TRUSTED-TYPES]] [[!WEBIDL]] [[!XML]] [[!XML-NAMES]] @@ -6599,8 +6601,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): +value, an optional null or string prefix (default null), an optional null +or string namespace (default null), and an optional boolean verify +(default false):

  1. Let attribute be the result of @@ -6615,11 +6618,17 @@ or string namespace (default null): value, and node document is element's node document. -
  2. Let verifiedValue be the result of calling verify attribute value - value for attribute, with element. +

  3. Let verifiedValue be value. + +

  4. If verify is true: +

      +
    1. Set verifiedValue to the result of calling verify attribute value + value for attribute, with element. -

    2. Set attributeExists to true if element has - an attribute attribute; otherwise false. +

    3. Set attributeExists to true if element has + an attribute attribute; otherwise false. +

    +
  5. If attributeExists is true, change attribute to verifiedValue. @@ -6925,7 +6934,7 @@ method steps are: passing namespace and qualifiedName to validate and extract.

  6. Set an attribute value for this using localName, value, - and also prefix and namespace. + prefix, namespace and true.

The