Skip to content

Commit

Permalink
Make item(undefined) act the same way as item("undefined")
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Sep 5, 2017
1 parent 152c2c0 commit ec03b38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -7106,7 +7106,8 @@ interface <dfn>HTMLAllCollection</dfn> {
readonly attribute unsigned long <span data-x="dom-HTMLAllCollection-length">length</span>;
getter <span>Element</span>? (unsigned long index);
getter (<span>HTMLCollection</span> or <span>Element</span>)? <span data-x="dom-HTMLAllCollection-namedItem">namedItem</span>(DOMString name);
(<span>HTMLCollection</span> or <span>Element</span>)? <span data-x="dom-HTMLAllCollection-item">item</span>(optional DOMString nameOrIndex);
(<span>HTMLCollection</span> or <span>Element</span>)? <span data-x="dom-HTMLAllCollection-item-noargs">item</span>();
(<span>HTMLCollection</span> or <span>Element</span>)? <span data-x="dom-HTMLAllCollection-item">item</span>(DOMString nameOrIndex);

// Note: HTMLAllCollection objects have a <a href="#HTMLAllCollection-call">custom [[Call]] internal method</a> in addition to regular
// Web IDL semantics.
Expand Down Expand Up @@ -7170,6 +7171,9 @@ interface <dfn>HTMLAllCollection</dfn> {
method must return the result of <span data-x="concept-get-all-named">getting the "all"-named
element(s)</span> from this <code>HTMLAllCollection</code> given <var>name</var>.</p>

<p>The <dfn><code data-x="dom-HTMLAllCollection-item-noargs">item()</code></dfn> method must return
null.</p>

<p>The <dfn><code data-x="dom-HTMLAllCollection-item">item(<var>nameOrIndex</var>)</code></dfn>
method must return the result of <span data-x="concept-get-all-indexed-or-named">getting the
"all"-indexed or named element(s)</span> from this <code>HTMLAllCollection</code> given
Expand Down

0 comments on commit ec03b38

Please sign in to comment.