diff --git a/dom.bs b/dom.bs index f1d8d9406..d53be3d9d 100644 --- a/dom.bs +++ b/dom.bs @@ -4228,7 +4228,9 @@ dom-Range-extractContents, dom-Range-cloneContents -->
  1. Let copyAttribute be a clone of attribute. -

  2. Append copyAttribute to copy. +

  3. +

    Append copyAttribute to copy + with copyAttribute's value.

@@ -6101,10 +6103,20 @@ its attribute list is empty. elements. The algorithm is passed element, localName, oldValue, value, and namespace. +

This and other specifications may define +attribute validation steps for +elements. The algorithm is passed element, localName, +value, and namespace. +

To handle attribute changes for an attribute attribute with element, oldValue, and newValue, run these steps:

    +
  1. Run the attribute validation steps with element, + attribute's local name, newValue and + attribute's namespace. If this throws an exception, then + rethrow the exception and abort further steps. +

  2. Queue a mutation record of "attributes" for element with attribute's local name, attribute's namespace, oldValue, « », « », null, and null. @@ -6131,12 +6143,14 @@ its attribute list is empty.

To append an -attribute attribute to an element element, run these -steps: +attribute attribute to an element element +with a value, run these steps:

  1. Handle attribute changes for attribute with element, null, and - attribute's value. + value. + +

  2. Set attribute's value to value.

  3. Append attribute to element's attribute list. @@ -6235,7 +6249,8 @@ run these steps:

  4. If oldAttr is non-null, then replace oldAttr with attr. -

  5. Otherwise, append attr to element. +

  6. Otherwise, append attr to element + with attr's value.

  7. Return oldAttr.

@@ -6255,10 +6270,9 @@ optional prefix, and namespace, run these steps:
  • If attribute is null, create an attribute whose namespace is namespace, namespace prefix is prefix, - local name is localName, value is value, and - node document is element's node document, then - append this attribute to element, and then - return. + local name is localName and node document is + element's node document, then append + this attribute to element with value, and then return.
  • Change attribute to value. @@ -6521,10 +6535,9 @@ method, when invoked, must run these steps:

  • If attribute is null, create an attribute whose - local name is qualifiedName, value is - value, and node document is context object's - node document, then append this attribute to - context object, and then return. + local name is qualifiedName and node document + is context object's node document, then append + this attribute to context object with value and then return.

  • Change attribute to value. @@ -6586,10 +6599,9 @@ method, when invoked, must run these steps:

    1. If force is not given or is true, create an attribute whose - local name is qualifiedName, value is the empty - string, and node document is the context object's - node document, then append this attribute - to the context object, and then return true. + local name is qualifiedName and node document + is the context object's node document, then append + this attribute to the context object with an empty string, and then return true.

    2. Return false.

    @@ -10094,6 +10106,7 @@ Justin Summerlin, Kevin Sweeney, Kirill Topolyan, Koji Ishii, +Krzysztof Kotowicz, Lachlan Hunt, Lauren Wood, Luke Zielinski,