Skip to content

Commit 8c42aa6

Browse files
foolipdomenic
authored andcommitted
Regression fix for document.all(undefined)
This makes document.all(undefined) behave like document.all.item(undefined). The intent of 0679448 was to be editorial, but it accidentally made these cases different. There was already a test for this, submitted at the same time as the supposed-editorial change: https://github.com/w3c/web-platform-tests/blob/b6d42d0174fd24bda0802f8a55ee46381092ef80/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html#L209
1 parent 0d097af commit 8c42aa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7478,8 +7478,8 @@ interface <dfn>HTMLAllCollection</dfn> {
74787478
<h6 id="HTMLAllCollection-call">[[Call]] ( <var>thisArgument</var>, <var>argumentsList</var> )</h6>
74797479

74807480
<ol>
7481-
<li><p>If <var>argumentsList</var>'s <span data-x="list size">size</span> is zero, return
7482-
null.</p></li>
7481+
<li><p>If <var>argumentsList</var>'s <span data-x="list size">size</span> is zero, or if
7482+
<var>argumentsList</var>[0] is undefined, return null.</p></li>
74837483

74847484
<li><p>Let <var>nameOrIndex</var> be the result of <span
74857485
data-x="concept-idl-convert">converting</span> <var>argumentsList</var>[0] to a <code

0 commit comments

Comments
 (0)