diff --git a/dom.bs b/dom.bs index f1d8d9406..d53be3d9d 100644 --- a/dom.bs +++ b/dom.bs @@ -4228,7 +4228,9 @@ dom-Range-extractContents, dom-Range-cloneContents -->
@@ -6101,10 +6103,20 @@ its attribute list is empty. elements. The algorithm is passed element, localName, oldValue, value, and namespace. +This and other specifications may define +attribute validation steps for +elements. The algorithm is passed element, localName, +value, and namespace. +
To handle attribute changes for an attribute attribute with element, oldValue, and newValue, run these steps:
Run the attribute validation steps with element, + attribute's local name, newValue and + attribute's namespace. If this throws an exception, then + rethrow the exception and abort further steps. +
Queue a mutation record of "attributes
" for element with
attribute's local name, attribute's
namespace, oldValue, « », « », null, and null.
@@ -6131,12 +6143,14 @@ its attribute list is empty.
To append an -attribute attribute to an element element, run these -steps: +attribute attribute to an element element +with a value, run these steps:
Handle attribute changes for attribute with element, null, and - attribute's value. + value. + +
Set attribute's value to value.
Append attribute to element's attribute list. @@ -6235,7 +6249,8 @@ run these steps:
If oldAttr is non-null, then replace oldAttr with attr. -
Otherwise, append attr to element. +
Return oldAttr.
Change attribute to value. @@ -6521,10 +6535,9 @@ method, when invoked, must run these steps:
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. + local name is qualifiedName and node document + is context object's node document, then append + this attribute to context object with value and then return.
Change attribute to value. @@ -6586,10 +6599,9 @@ method, when invoked, must run these steps:
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 the context object's - node document, then append this attribute - to the context object, and then return true. + local name is qualifiedName and node document + is the context object's node document, then append + this attribute to the context object with an empty string, and then return true.
Return false.