diff --git a/dom.bs b/dom.bs index 6eefb8169..2dfbaa6a6 100644 --- a/dom.bs +++ b/dom.bs @@ -6185,10 +6185,10 @@ given a document, localName, namespace, and opt attribute attribute to value, run these steps:
    +
  1. Set attribute's value to value. +

  2. Handle attribute changes for attribute with attribute's element, attribute's value, and value. - -

  3. Set attribute's value to value.

To append an @@ -6196,36 +6196,34 @@ given a document, localName, namespace, and opt steps:

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

  2. Append attribute to element's attribute list.

  3. Set attribute's element to element. + +

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

To remove an attribute attribute, run these steps:

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

  2. Let element be attribute's element.

  3. -
  4. Remove attribute from attribute's - element's attribute list. +
  5. Remove attribute from element's attribute + list.
  6. Set attribute's element to null. + +

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

To replace an attribute oldAttr with an attribute newAttr, run these steps:

    -
  1. Handle attribute changes for oldAttr with oldAttr's - element, oldAttr's value, and newAttr's - value. -

  2. Replace oldAttr by newAttr in oldAttr's element's attribute list. @@ -6233,6 +6231,10 @@ steps: element.

  3. Set oldAttr's element to null. + +

  4. Handle attribute changes for oldAttr with newAttr's + element, oldAttr's value, and newAttr's + value.