W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2008

html5/spec Overview.html,1.1465,1.1466

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 07 Oct 2008 21:21:20 +0000
To: public-html-commits@w3.org
Message-Id: <E1KnJzc-00054a-BI@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv19484

Modified Files:
	Overview.html 
Log Message:
WF2: final bits of the <select> API (whatwg r2293)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1465
retrieving revision 1.1466
diff -u -d -r1.1465 -r1.1466
--- Overview.html	7 Oct 2008 21:06:39 -0000	1.1465
+++ Overview.html	7 Oct 2008 21:21:17 -0000	1.1466
@@ -21142,9 +21142,9 @@
   void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in long before);
   void <a href=#dom-select-remove title=dom-select-remove>remove</a>(in long index);
 
-  readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <span title=dom-select-selectedOptions>selectedOptions</span>;
-           attribute long <span title=dom-select-selectedIndex>selectedIndex</span>;
-           attribute DOMString <span title=dom-select-value>value</span>;
+  readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <a href=#dom-select-selectedoptions title=dom-select-selectedOptions>selectedOptions</a>;
+           attribute long <a href=#dom-select-selectedindex title=dom-select-selectedIndex>selectedIndex</a>;
+           attribute DOMString <a href=#dom-select-value title=dom-select-value>value</a>;
 
   readonly attribute boolean <a href=#dom-cva-willvalidate title=dom-cva-willValidate>willValidate</a>;
   readonly attribute <span>ValidityState</span> <a href=#dom-cva-validity title=dom-cva-validity>validity</a>;
@@ -21225,11 +21225,33 @@
   the <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> object return by the <code title=dom-select-options><a href=#dom-select-options>options</a></code> attribute. Similarly, the
   <dfn id=dom-select-add title=dom-select-add><code>add()</code></dfn> and <dfn id=dom-select-remove title=dom-select-remove><code>remove()</code></dfn> methods must
   act like their namesake methods on that same
-  <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> object.</p><!-- XXX9 is blocked on WebIDL --><!--
-  XXX readonly attribute <span>HTMLOptionsCollection</span> <span title="dom-select-selectedOptions">selectedOptions</span>;
-  XXX          attribute long <span title="dom-select-selectedIndex">selectedIndex</span>;
-  XXX          attribute DOMString <span title="dom-select-value">value</span>;
-  --><p class=XXX>...<p>The <dfn id=dom-select-multiple title=dom-select-multiple><code>multiple</code></dfn>
+  <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> object.</p><!-- XXX9 is blocked on WebIDL --><p>The <dfn id=dom-select-selectedoptions title=dom-select-selectedOptions><code>selectedOptions</code></dfn>
+  DOM attribute must return an <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code>
+  rooted at the <code><a href=#the-select-element>select</a></code> node, whose filter matches the
+  elements in the <a href=#concept-select-option-list title=concept-select-option-list>list of
+  options</a> that have their <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to
+  true.<p>The <dfn id=dom-select-selectedindex title=dom-select-selectedIndex><code>selectedIndex</code></dfn>
+  DOM attribute, on getting, must return the <a href=#concept-option-index title=concept-option-index>index</a> of the first
+  <code><a href=#the-option-element>option</a></code> element in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> in
+  <a href=#tree-order>tree order</a> that has its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to true,
+  if any. If there isn't one, then it must return -1.<p>On setting, the <code title=dom-select-selectedIndex><a href=#dom-select-selectedindex>selectedIndex</a></code> attribute must
+  set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of all the
+  <code><a href=#the-option-element>option</a></code> elements in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> to false,
+  and then the <code><a href=#the-option-element>option</a></code> element in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> whose
+  <a href=#concept-option-index title=concept-option-index>index</a> is the given new
+  value, if any, must have its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to
+  true.<p>The <dfn id=dom-select-value title=dom-select-value><code>value</code></dfn> DOM
+  attribute, on getting, must return the <a href=#concept-option-value title=concept-option-value>value</a> of the first
+  <code><a href=#the-option-element>option</a></code> element in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> in
+  <a href=#tree-order>tree order</a> that has its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to true,
+  if any. If there isn't one, then it must return the empty
+  string.<p>On setting, the <code title=dom-select-value><a href=#dom-select-value>value</a></code>
+  attribute must set the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> of all the
+  <code><a href=#the-option-element>option</a></code> elements in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> to false,
+  and then first the <code><a href=#the-option-element>option</a></code> element in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>, in
+  <a href=#tree-order>tree order</a>, whose <a href=#concept-option-value title=concept-option-value>value</a> is equal to the given new
+  value, if any, must have its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to
+  true.<p>The <dfn id=dom-select-multiple title=dom-select-multiple><code>multiple</code></dfn>
   and <dfn id=dom-select-size title=dom-select-size><code>size</code></dfn> DOM
   attributes must <a href=#reflect>reflect</a> the respective content
   attributes of the same name. The <code title=dom-select-size><a href=#dom-select-size>size</a></code> DOM attribute <a href=#limited-to-only-positive-non-zero-numbers>limited to
@@ -21300,7 +21322,7 @@
   readonly attribute long <span title=dom-option-index>index</span>;
 };</pre>
    </dd> 
-  </dl><p class=XXX>...<p class=XXX>... <dfn id=concept-option-selected title=concept-option-selected>selected</dfn>/<dfn id=concept-option-selectedness title=concept-option-selectedness>selectedness</dfn><p class=XXX>... <dfn id=concept-option-value title=concept-option-value>value</dfn><p class=XXX>... <dfn id=concept-option-disabled title=concept-option-disabled>disabled</dfn><p class=XXX>
+  </dl><p class=XXX>...<p class=XXX>... <dfn id=concept-option-selected title=concept-option-selected>selected</dfn>/<dfn id=concept-option-selectedness title=concept-option-selectedness>selectedness</dfn><p class=XXX>... <dfn id=concept-option-value title=concept-option-value>value</dfn><p class=XXX>... <dfn id=concept-option-disabled title=concept-option-disabled>disabled</dfn><p class=XXX>... <dfn id=concept-option-index title=concept-option-index>index</dfn><p class=XXX>
    <dfn id=dom-option title=dom-option><code>Option()</code></dfn>
    <dfn id=dom-option-n title=dom-option-n><code>Option(<var title="">name</var>)</code></dfn>
    <dfn id=dom-option-nv title=dom-option-nv><code>Option(<var title="">name</var>, <var title="">value</var>)</code></dfn>
Received on Tuesday, 7 October 2008 21:21:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:33:00 GMT