Skip to content

Commit 02eace9

Browse files
richard-uk1alexcrichton
authored andcommitted
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.
1 parent 580c7a7 commit 02eace9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/web-sys/webidls/enabled/DOMTokenList.webidl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* liability, trademark and document use rules apply.
1111
*/
1212

13+
// updated using https://dom.spec.whatwg.org/#interface-domtokenlist
14+
1315
interface DOMTokenList {
1416
readonly attribute unsigned long length;
1517
getter DOMString? item(unsigned long index);
@@ -27,5 +29,5 @@ interface DOMTokenList {
2729
[CEReactions, SetterThrows]
2830
attribute DOMString value;
2931
stringifier DOMString ();
30-
iterable<DOMString?>;
32+
iterable<DOMString>;
3133
};

crates/web-sys/webidls/enabled/NodeList.webidl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
* liability, trademark and document use rules apply.
1111
*/
1212

13+
// Updated using https://dom.spec.whatwg.org/#interface-nodelist
14+
1315
[ProbablyShortLivingWrapper]
1416
interface NodeList {
1517
getter Node? item(unsigned long index);
1618
readonly attribute unsigned long length;
17-
iterable<Node?>;
19+
iterable<Node>;
1820
};

0 commit comments

Comments
 (0)