diff --git a/dom.bs b/dom.bs index 77905847..9f96474c 100644 --- a/dom.bs +++ b/dom.bs @@ -6971,6 +6971,8 @@ method steps are:

If attribute is null, then:

    +
  1. If force is false, return false. +

  2. Set attribute to an attribute whose local name is qualifiedName, value is the empty string, and node document is this's node document. @@ -6978,12 +6980,20 @@ method steps are:

  3. Let verifiedValue be the result of calling verify attribute value attribute's value for attribute, with this. -

  4. Set attribute's value to verifiedValue. +

  5. Let existingAttribute be the first attribute in this's + attribute list whose qualified name is qualifiedName, + and null otherwise. + +

  6. If existingAttribute is null: +

      +
    1. Set attribute's value to verifiedValue. + +

    2. Append attribute to this. -

    3. If force is not given or is true, then append - this attribute to this, and then return true. +

    4. Return true. +

    -
  7. Return false. +

  8. Set existingAttribute's value to verifiedValue.

  • Otherwise, if force is not given or is false,