- From: poot <cvsmail@w3.org>
- Date: Sat, 13 Feb 2010 22:50:43 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Define how mutation events fire for HTMLOptionsCollection.length setter. (whatwg r4707) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3757&r2=1.3758&f=h http://html5.org/tools/web-apps-tracker?from=4706&to=4707 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3757 retrieving revision 1.3758 diff -u -d -r1.3757 -r1.3758 --- Overview.html 13 Feb 2010 12:51:01 -0000 1.3757 +++ Overview.html 13 Feb 2010 13:50:30 -0000 1.3758 @@ -5262,10 +5262,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
Received on Saturday, 13 February 2010 13:51:11 UTC