diff --git a/dom.bs b/dom.bs index 73422187..5ffe342c 100644 --- a/dom.bs +++ b/dom.bs @@ -6366,10 +6366,14 @@ given a document, localName, namespace, and opt
To append an -attribute attribute to an element element, run these -steps: +attribute attribute to an element element, with optional +string sink (default ""), run these steps:
If sink is not an empty string Validate and set attribute value + attribute's value for attribute with element, + and sink. +
Append attribute to element's attribute list. @@ -6486,13 +6490,18 @@ and a string sink:
If oldAttr is attr, return attr. -
Validate and set attribute value newAttr's value for - newAttr with element, and sink. +
If oldAttr is non-null, then:
-If oldAttr is non-null, then replace - oldAttr with attr. +
Validate and set attribute value attr's value for + attr with element, and sink. -
Otherwise, append attr to element. +
Replace oldAttr with attr. +
Otherwise, append attr to element + with sink.
Return oldAttr.
If attribute is null, then: -
Set attribute to a new attribute whose namespace is - namespace, namespace prefix is prefix, - local name is localName and node document is - element's node document. - -
Validate and set attribute value value for attribute with - element, and sink. - -
Append attribute to element. - -
Return. -
Change attribute to value, with sink. @@ -6786,21 +6786,11 @@ method steps are: and null otherwise. -
If attribute is null, then: - -
Set attribute to a new attribute whose local name is - qualifiedName and node document is this's - node document. - -
Validate and set attribute value value for attribute, - with this and "Element setAttribute". - -
Return. -
If attribute is null, create an attribute whose + local name is qualifiedName, value is + value, and node document is this's node document, + then append this attribute to this with + "Element setAttribute", and then return.
Change attribute to value, with "Element setAttribute". @@ -6863,8 +6853,8 @@ method steps are:
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 this's node document, then - append this attribute to this, and then return - true. + append this attribute to this with + "Element toggleAttribute", and then return true.
Return false.