- From: poot <cvsmail@w3.org>
- Date: Tue, 31 Aug 2010 03:30:29 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Define option.selected; make <option disabled selected> still get selected. (whatwg r5399) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4310&r2=1.4311&f=h http://html5.org/tools/web-apps-tracker?from=5398&to=5399 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4310 retrieving revision 1.4311 diff -u -d -r1.4310 -r1.4311 --- Overview.html 30 Aug 2010 18:08:59 -0000 1.4310 +++ Overview.html 30 Aug 2010 18:24:00 -0000 1.4311 @@ -32804,9 +32804,7 @@ <p>The <dfn id="concept-option-selectedness" title="concept-option-selectedness">selectedness</dfn> of an <code><a href="#the-option-element">option</a></code> element is a boolean state, initially - false. If the element is <a href="#concept-option-disabled" title="concept-option-disabled">disabled</a>, then the element's - <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> is - always false and cannot be set to true. Except where otherwise + false. Except where otherwise specified, when the element is created, its <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> must be set to true if the element has a <code title="attr-option-selected"><a href="#attr-option-selected">selected</a></code> attribute. Whenever an <code><a href="#the-option-element">option</a></code> element's <code title="attr-option-selected"><a href="#attr-option-selected">selected</a></code> attribute is added, its @@ -32822,6 +32820,8 @@ initial <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> state when using the constructor.</p> + <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/604 --> + </div><p>A <code><a href="#the-select-element">select</a></code> element whose <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is not specified must not have more than one descendant <code><a href="#the-option-element">option</a></code> element with its <code title="attr-option-selected"><a href="#attr-option-selected">selected</a></code> @@ -32839,6 +32839,8 @@ <p>Returns true if the element is selected, and false otherwise.</p> + <p>Can be set, to override the current state of the element.</p> + </dd> <dt><var title="">option</var> . <code title="dom-option-index"><a href="#dom-option-index">index</a></code></dt> @@ -32896,8 +32898,9 @@ to the new value.</p> <p>The <dfn id="dom-option-selected" title="dom-option-selected"><code>selected</code></dfn> - IDL attribute must return true if the element's <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> is true, and - false otherwise.</p> + IDL attribute, on getting, must return true if the element's <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> is true, and + false otherwise. On setting, it must set the element's <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> to the new + value.</p> <p>The <dfn id="dom-option-index" title="dom-option-index"><code>index</code></dfn> IDL attribute must return the element's <a href="#concept-option-index" title="concept-option-index">index</a>.</p>
Received on Monday, 30 August 2010 18:24:47 UTC