[html5] r4707 - [giow] (0) Define how mutation events fire for HTMLOptionsCollection.length sett [...]
whatwg at whatwg.org
whatwg at whatwg.org
Sat Feb 13 05:50:27 PST 2010
Author: ianh
Date: 2010-02-13 05:50:25 -0800 (Sat, 13 Feb 2010)
New Revision: 4707
Modified:
complete.html
index
source
Log:
[giow] (0) Define how mutation events fire for HTMLOptionsCollection.length setter.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8816
Modified: complete.html
===================================================================
--- complete.html 2010-02-13 12:50:54 UTC (rev 4706)
+++ complete.html 2010-02-13 13:50:25 UTC (rev 4707)
@@ -6033,10 +6033,12 @@
<code><a href=#the-option-element>option</a></code> elements with no attributes and no child nodes
must be appended to the <code><a href=#the-select-element>select</a></code> element on which the
<code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, where <var title="">n</var> is the difference between the two numbers (new
- value minus old value). If the new value is lower, then the last
- <var title="">n</var> nodes in the collection must be removed from
- their parent nodes, where <var title="">n</var> is the difference
- between the two numbers (old value minus new value).</p>
+ value minus old value). Mutation events must be fired as if a
+ <code>DocumentFragment</code> containing the new <code><a href=#the-option-element>option</a></code>
+ elements had been inserted. If the new value is lower, then the
+ last <var title="">n</var> nodes in the collection must be removed
+ from their parent nodes, where <var title="">n</var> is the
+ difference between the two numbers (old value minus new value).</p>
<p class=note>Setting <code title=dom-HTMLOptionsCollection-length><a href=#dom-htmloptionscollection-length>length</a></code> never removes
or adds any <code><a href=#the-optgroup-element>optgroup</a></code> elements, and never adds new
Modified: index
===================================================================
--- index 2010-02-13 12:50:54 UTC (rev 4706)
+++ index 2010-02-13 13:50:25 UTC (rev 4707)
@@ -5932,10 +5932,12 @@
<code><a href=#the-option-element>option</a></code> elements with no attributes and no child nodes
must be appended to the <code><a href=#the-select-element>select</a></code> element on which the
<code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, where <var title="">n</var> is the difference between the two numbers (new
- value minus old value). If the new value is lower, then the last
- <var title="">n</var> nodes in the collection must be removed from
- their parent nodes, where <var title="">n</var> is the difference
- between the two numbers (old value minus new value).</p>
+ value minus old value). Mutation events must be fired as if a
+ <code>DocumentFragment</code> containing the new <code><a href=#the-option-element>option</a></code>
+ elements had been inserted. If the new value is lower, then the
+ last <var title="">n</var> nodes in the collection must be removed
+ from their parent nodes, where <var title="">n</var> is the
+ difference between the two numbers (old value minus new value).</p>
<p class=note>Setting <code title=dom-HTMLOptionsCollection-length><a href=#dom-htmloptionscollection-length>length</a></code> never removes
or adds any <code><a href=#the-optgroup-element>optgroup</a></code> elements, and never adds new
Modified: source
===================================================================
--- source 2010-02-13 12:50:54 UTC (rev 4706)
+++ source 2010-02-13 13:50:25 UTC (rev 4707)
@@ -5662,10 +5662,12 @@
must be appended to the <code>select</code> element on which the
<code>HTMLOptionsCollection</code> is rooted, where <var
title="">n</var> is the difference between the two numbers (new
- value minus old value). If the new value is lower, then the last
- <var title="">n</var> nodes in the collection must be removed from
- their parent nodes, where <var title="">n</var> is the difference
- between the two numbers (old value minus new value).</p>
+ value minus old value). Mutation events must be fired as if a
+ <code>DocumentFragment</code> containing the new <code>option</code>
+ elements had been inserted. If the new value is lower, then the
+ last <var title="">n</var> nodes in the collection must be removed
+ from their parent nodes, where <var title="">n</var> is the
+ difference between the two numbers (old value minus new value).</p>
<p class="note">Setting <code
title="dom-HTMLOptionsCollection-length">length</code> never removes
More information about the Commit-Watchers
mailing list