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

View File

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