diff --git a/dom.bs b/dom.bs index f1d8d9406..28929e3ca 100644 --- a/dom.bs +++ b/dom.bs @@ -6124,6 +6124,8 @@ its attribute list is empty. attribute attribute to value, run these steps:
    +
  1. Assert: attribute's element is non-null. +

  2. Handle attribute changes for attribute with attribute's element, attribute's value, and value. @@ -6135,8 +6137,8 @@ its attribute list is empty. steps:

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

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

    3. Append attribute to element's attribute list. @@ -6148,8 +6150,12 @@ steps: 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. Assert: element is non-null. + +

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

      5. Remove attribute from attribute's element's attribute list. @@ -6161,12 +6167,12 @@ steps: 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. Let element be oldAttr's element. -

        3. Replace oldAttr by newAttr in oldAttr's - element's attribute list. +

        4. Assert: element is non-null. + +

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

        6. Set newAttr's element to oldAttr's element.