From 504abff4bc6f9e1c9fdc7ee1cc45c6eca882658f Mon Sep 17 00:00:00 2001 From: Krzysztof Kotowicz Date: Thu, 25 Jan 2024 12:08:40 +0100 Subject: [PATCH] Fixed formatting. --- dom.bs | 59 ++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/dom.bs b/dom.bs index eb6ba74c..403cfc93 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]] @@ -6357,7 +6358,8 @@ given a document, localName, namespace, and opt

  1. Let oldValue be attribute's value.

  2. -
  3. Validate and set attribute value value for attribute, with attribute's element. +

  4. Validate and set attribute value value for attribute, with + attribute's element.

  5. 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: + +

    +
  1. Let validValue be the result of calling + Get Trusted Types-compliant attribute value for attribute, with + element and value. [[!TRUSTED-TYPES]] -

      -
    1. Let validValue be the result of calling Get Trusted Types-compliant attribute value - for attribute, with element and value.[[!TRUSTED-TYPES]]

    2. 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):

    1. Let attribute be the result of @@ -6511,12 +6518,14 @@ an optional null or string prefix (default null), and an optional nul
      1. 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. + +

      2. Validate and set attribute value value for attribute with + element. -

      3. Validate and set attribute value value for attribute with element. +

      4. Append attribute to element. -

      5. Append attribute to element

      6. Return.

      @@ -6782,13 +6791,19 @@ method steps are:
    2. If attribute is null, then: -

        -
      1. Set attribute to a new attribute whose - local name is qualifiedName and node document is this's node document. -

      2. Validate and set attribute value value for attribute, with this. -

      3. Append attribute to this. -
      4. Return. -

      + +
        +
      1. Set attribute to a new attribute whose local name is + qualifiedName and node document is this's + node document. + +

      2. Validate and set attribute value value for attribute, + with this. + +

      3. Append attribute to this. + +

      4. Return. +

    3. Change attribute to value.