Update webidl files based on (#1980)

- https://dom.spec.whatwg.org/#interface-domtokenlist
 - https://dom.spec.whatwg.org/#interface-nodelist

This is a non-breaking change as iterables are currently ignored anyway.
This commit is contained in:
Richard Dodd (dodj) 2020-01-27 15:06:04 +00:00 committed by Alex Crichton
parent 580c7a714a
commit 02eace9bff
2 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,8 @@
* liability, trademark and document use rules apply.
*/
// updated using https://dom.spec.whatwg.org/#interface-domtokenlist
interface DOMTokenList {
readonly attribute unsigned long length;
getter DOMString? item(unsigned long index);
@ -27,5 +29,5 @@ interface DOMTokenList {
[CEReactions, SetterThrows]
attribute DOMString value;
stringifier DOMString ();
iterable<DOMString?>;
iterable<DOMString>;
};

View File

@ -10,9 +10,11 @@
* liability, trademark and document use rules apply.
*/
// Updated using https://dom.spec.whatwg.org/#interface-nodelist
[ProbablyShortLivingWrapper]
interface NodeList {
getter Node? item(unsigned long index);
readonly attribute unsigned long length;
iterable<Node?>;
iterable<Node>;
};