You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The object's <span>supported property indices</span> are as defined for
8436
8437
<code>HTMLCollection</code> objects.</p>
8437
8438
8438
-
<p>On getting, the <dfn attribute for="HTMLOptionsCollection"><code
8439
-
data-x="dom-HTMLOptionsCollection-length">length</code></dfn> attribute must return the number of
8440
-
nodes <span>represented by the collection</span>.</p>
8441
-
8442
-
<p>On setting, the behavior depends on whether the new value is equal to, greater than, or less
8443
-
than the number of nodes <span>represented by the collection</span> at that time. If the number is
8444
-
the same, then setting the attribute must do nothing. If the new value is greater, then <var>n</var> new <code>option</code> elements with no attributes and no child nodes must be
8445
-
appended to the <code>select</code> element on which the <code>HTMLOptionsCollection</code> is
8446
-
rooted, where <var>n</var> is the difference between the two numbers (new value minus old
8447
-
value). Mutation events must be fired as if a <code>DocumentFragment</code> containing the new
8448
-
<code>option</code> elements had been inserted. If the new value is lower, then the last <var>n</var> nodes in the collection must be removed from their parent nodes, where <var>n</var> is the difference between the two numbers (old value minus new value).</p>
0 commit comments