diff --git a/source b/source
index ebe806db4c4..06bd03af0f6 100644
--- a/source
+++ b/source
@@ -8374,8 +8374,9 @@ interface HTMLOptionsCollection : HTMLCollectionWhen set to a smaller number than the existing length, truncates the number of
option
elements in the container corresponding to collection.
When set to a greater number than the existing length, adds new blank option
- elements to the container corresponding to collection.
When set to a greater number than the existing length, if that number is less than or equal
+ to 100000, adds new blank option
elements to the container corresponding to
+ collection.
element = collection.item(index)
HTMLCollection
objects.
- On getting, the length
attribute must return the number of
- nodes represented by the collection.
On setting, the behavior depends on whether the new value is equal to, greater than, or less
- than the number of nodes represented by the collection at that time. If the number is
- the same, then setting the attribute must do nothing. If the new value is greater, then n new option
elements with no attributes and no child nodes must be
- appended to the select
element on which the HTMLOptionsCollection
is
- rooted, where n is the difference between the two numbers (new value minus old
- value). Mutation events must be fired as if a DocumentFragment
containing the new
- option
elements had been inserted. If the new value is lower, then the last n nodes in the collection must be removed from their parent nodes, where n is the difference between the two numbers (old value minus new value).
The length
getter steps are to return the
+ number of nodes represented by the collection.
The length
setter steps are:
Let current be the number of nodes represented by the + collection.
If the given value is greater than current, then:
+ +If the given value is greater than 100,000, then return.
Let n be value − current.
Append n new option
elements with no attributes and no child
+ nodes to the select
element on which this is rooted. Mutation events
+ must be fired as if a DocumentFragment
containing the new option
+ elements had been inserted.
If the given value is less than current, then:
+ +Let n be current − value.
Remove the last n nodes in the collection from their parent nodes.
Setting length
never removes
or adds any optgroup
elements, and never adds new children to existing