Skip to content

Commit

Permalink
Specify a limit in HTMLOptionsCollection.length setter.
Browse files Browse the repository at this point in the history
This aligns with WebKit's behavior as per the discussion in
#8337.
  • Loading branch information
emilio committed Oct 2, 2022
1 parent 1fcb55e commit 43746da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -8379,8 +8379,9 @@ interface <dfn interface>HTMLOptionsCollection</dfn> : <span>HTMLCollection</spa
<p>When set to a smaller number than the existing length, truncates the number of
<code>option</code> elements in the container corresponding to <var>collection</var>.</p>

<p>When set to a greater number than the existing length, adds new blank <code>option</code>
elements to the container corresponding to <var>collection</var>.</p>
<p>When set to a greater number than the existing length, if that number is less than or equal
to 10000, adds new blank <code>option</code> elements to the container corresponding to
<var>collection</var>.</p>
</dd>

<dt><code data-x=""><var>element</var> = <var>collection</var>.<span data-x="dom-HTMLCollection-item">item</span>(<var>index</var>)</code></dt>
Expand Down

0 comments on commit 43746da

Please sign in to comment.