diff --git a/dom.bs b/dom.bs index bd45d43e..d96c425a 100644 --- a/dom.bs +++ b/dom.bs @@ -8582,7 +8582,7 @@ interface DOMTokenList { readonly attribute unsigned long length; getter DOMString? item(unsigned long index); boolean contains(DOMString token); - void add(DOMString... tokens); + boolean add(DOMString... tokens); void remove(DOMString... tokens); boolean toggle(DOMString token, optional boolean force); void replace(DOMString token, DOMString newToken); @@ -8606,8 +8606,8 @@ associated attribute's local name. token are:
If the associated attribute's local name does not define supported - tokens, return true. +
If the associated attribute's local name does not define + supported tokens, return true.
Let lowercase token be a copy of token, converted to ASCII lowercase. @@ -8642,8 +8642,16 @@ are to: associated attribute's local name attribute or associated element's associated attribute's local name attribute is -set, set tokens to the new value, -parsed. +set, run these substeps: + +
For each token in temporary tokens, run + validation steps with token. If the return value is true, append token + to tokens. +
When an associated element's associated attribute's local name attribute is diff --git a/dom.html b/dom.html index ffef6619..bce85777 100644 --- a/dom.html +++ b/dom.html @@ -69,7 +69,7 @@
DOMTokenList
object’s validation steps for a given token are:
If the associated attribute’s local name does not define supported - tokens, return true.
+If the associated attribute’s local name does not define supported tokens, return true.
Let lowercase token be a copy of token, converted to ASCII lowercase.
When a DOMTokenList
object is created and its associated element has an associated attribute’s local name attribute or
-associated element’s associated attribute’s local name attribute is set, set tokens to the new value, parsed.
For each token in temporary tokens, run validation steps with token. If the return value is true, append token to tokens.
+When an associated element’s associated attribute’s local name attribute is removed, set tokens to the empty set.
tokenlist . length
@@ -5507,7 +5512,7 @@