diff --git a/dom.bs b/dom.bs index 1e19e00b6..97898fb10 100644 --- a/dom.bs +++ b/dom.bs @@ -6189,6 +6189,22 @@ in an element element, run these steps:
+ +To create an attribute by value +given a qualifiedName, value and element element, run these steps: + +
    +
  1. Create an attribute whose + local name is qualifiedName, value is + value, and node document is context object's + node document. + +

  2. Append this attribute to + element + +
  3. Return. +
+ To get a valid attribute by name given a qualifiedName, and element element, run these steps: @@ -6548,11 +6564,8 @@ method, when invoked, must run these steps:
  1. Let qualifiedName and attribute be the result of running get a valid attribute by name given the qualifiedName and context object -

  2. 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. + +

  3. If attribute is null, run create an attribute by value given the qualifiedName, value and context object, and then return.

  4. Change attribute from context object to value. @@ -6606,13 +6619,7 @@ method, when invoked, must run these steps:

    1. If force is given and is false, return false. -

    2. Create an attribute whose - local name is qualifiedName, value is the empty - string, and node document is the context object's - node document. - -

    3. Append this attribute - to the context object. +
    4. Run create an attribute by value given the qualifiedName, the empty string and context object.

    5. Return true.