spec/Overview.html 1.1468 2295 WF2: input.list; input.selectedOption, <

WF2: input.list; input.selectedOption, <datalist>; minor fixes around
previous checkins (whatwg r2295)

HTMLDataListElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#htmldatalistelement
selectedIndex
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-select-selectedindex
HTMLSelectElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#htmlselectelement
stepDown()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-input-stepdown
options
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-datalist-options
4.10.7 The datalist element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#the-datalist-element
4.10.4.4 Common event behaviors
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#common-event-behaviors
off
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#attr-input-autocomplete-off-state
4.10.4.2.2 The list attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#the-list-attribute
4.10.4.2.3 The readonly attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#the-readonly-attribute
selectedOptions
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-select-selectedoptions
4.10.8 The optgroup element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#the-optgroup-element
list
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-input-list
length
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-select-length
selectedOption
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-input-selectedoption
options
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-select-options
add()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1468.html#dom-select-add

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1467&r2=1.1468&f=h
http://html5.org/tools/web-apps-tracker?from=2294&to=2295

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1467
retrieving revision 1.1468
diff -u -d -r1.1467 -r1.1468
--- Overview.html 7 Oct 2008 21:28:44 -0000 1.1467
+++ Overview.html 7 Oct 2008 22:24:55 -0000 1.1468
@@ -20742,7 +20742,8 @@
   should be enabled by default, and the ability to disable support
   should not be trivially accessible, as there are significant
   security implications for the user if support for this attribute is
-  disabled.<h6 id=the-list-attribute><span class=secno>4.10.4.2.2 </span>The <code title=attr-input-list><a href=#attr-input-list>list</a></code> attribute</h6><p class=XXX>... <dfn id=attr-input-list title=attr-input-list><code>list</code></dfn><h6 id=the-readonly-attribute><span class=secno>4.10.4.2.3 </span>The <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code> attribute</h6><p>The <dfn id=attr-input-readonly title=attr-input-readonly><code>readonly</code></dfn>
+  disabled.<h6 id=the-list-attribute><span class=secno>4.10.4.2.2 </span>The <code title=attr-input-list><a href=#attr-input-list>list</a></code> attribute</h6><p class=XXX>... <dfn id=attr-input-list title=attr-input-list><code>list</code></dfn><p class=XXX>... <dfn id=concept-input-list title=concept-input-list>suggestions
+  source element</dfn><h6 id=the-readonly-attribute><span class=secno>4.10.4.2.3 </span>The <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code> attribute</h6><p>The <dfn id=attr-input-readonly title=attr-input-readonly><code>readonly</code></dfn>
   attribute is a <a href=#boolean-attribute>boolean attribute</a>. When specified, the
   element is <i title=concept-input-immutable><a href=#concept-input-immutable>immutable</a></i>.<p><strong>Constraint validation:</strong> If the <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code> attribute is specified
   on an <code><a href=#the-input-element>input</a></code> element, the element is <a href=#barred-from-constraint-validation>barred from
@@ -20982,7 +20983,15 @@
    <li><p>Set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the
    element to <var title="">value as string</var>.</li>
 
-  </ol><hr><p class=XXX>... <dfn id=dom-input-list title=dom-input-list><code>list</code></dfn><p class=XXX>... <dfn id=dom-input-selectedoption title=dom-input-selectedOption><code>selectedOption</code></dfn><h5 id=common-event-behaviors><span class=secno>4.10.4.4 </span>Common event behaviors</h5><p>When the <dfn id=event-input-input title=event-input-input><code>input</code></dfn>
+  </ol><hr><p>The <dfn id=dom-input-list title=dom-input-list><code>list</code></dfn> DOM
+  attribute must return the current <a href=#concept-input-list title=concept-input-list>suggestions source element</a>, if
+  any, or null otherwise.<p>The <dfn id=dom-input-selectedoption title=dom-input-selectedOption><code>selectedOption</code></dfn>
+  DOM attribute must return the first <code><a href=#the-option-element>option</a></code> element, in
+  <a href=#tree-order>tree order</a>, to be a child of the <a href=#concept-input-list title=concept-input-list>suggestions source element</a> and
+  whose <a href=#concept-option-value title=concept-option-value>value</a> matches the
+  <code><a href=#the-input-element>input</a></code> element's <a href=#concept-fe-value title=concept-fe-value>value</a>, if any. If there is no <a href=#concept-input-list title=concept-input-list>suggestions source element</a>, or if
+  it contains no matching <code><a href=#the-option-element>option</a></code> element, then the <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> attribute
+  must return null.<h5 id=common-event-behaviors><span class=secno>4.10.4.4 </span>Common event behaviors</h5><p>When the <dfn id=event-input-input title=event-input-input><code>input</code></dfn>
   event applies, the user agent must <a href=#queue-a-task>queue a task</a> to
   <a href=#fire-a-simple-event>fire a simple event</a> called <code title=event-input>input</code> at the <code><a href=#the-input-element>input</a></code> element
   any time the user causes the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to change. User agents may
@@ -21143,7 +21152,7 @@
   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> <a href=#dom-select-selectedoptions title=dom-select-selectedOptions>selectedOptions</a>;
+  readonly attribute <a href=#htmlcollection-0>HTMLCollection</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>;
 
@@ -21223,14 +21232,14 @@
   elements in the <a href=#concept-select-option-list title=concept-select-option-list>list of
   options</a>.<p>The <dfn id=dom-select-length title=dom-select-length><code>length</code></dfn> DOM
   attribute, on getting and setting, must act like the <code title=dom-HTMLOptionsCollection-length><a href=#dom-htmloptionscollection-length>length</a></code> attribute on
-  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
+  the <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> object returned 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 --><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
+  DOM attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</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
@@ -21272,10 +21281,21 @@
    <dt>DOM interface:</dt>
    <dd>
 <pre class=idl>interface <dfn id=htmldatalistelement>HTMLDataListElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
-  readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <a href=#dom-select-options title=dom-select-options>options</a>;
+  readonly attribute <a href=#htmlcollection-0>HTMLCollection</a> <a href=#dom-datalist-options title=dom-datalist-options>options</a>;
 };</pre>
    </dd> 
-  </dl><p class=XXX>...<p><strong>Constraint validation:</strong> If an element has a
+  </dl><p>The <code><a href=#the-datalist-element>datalist</a></code> element represents a set of
+  <code><a href=#the-option-element>option</a></code> elements that represent predefined options for
+  other controls. The contents of the element represents fallback
+  content for legacy user agents, intermixed with <code><a href=#the-option-element>option</a></code>
+  elements that represent the predefined options. In the rendering,
+  the <code><a href=#the-datalist-element>datalist</a></code> element represents nothing and it, along
+  with its children, should be hidden.<p>The <code><a href=#the-datalist-element>datalist</a></code> element is hooked up to an
+  <code><a href=#the-input-element>input</a></code> element using the <code title=attr-input-list><a href=#attr-input-list>list</a></code> attribute on the
+  <code><a href=#the-input-element>input</a></code> element.<p>The <dfn id=dom-datalist-options title=dom-datalist-options><code>options</code></dfn>
+  DOM attribute must return an <code><a href=#htmlcollection-0>HTMLCollection</a></code> rooted at
+  the <code><a href=#the-datalist-element>datalist</a></code> node, whose filter matches
+  <code><a href=#the-option-element>option</a></code> elements.<p><strong>Constraint validation:</strong> If an element has a
   <code><a href=#the-datalist-element>datalist</a></code> element ancestor, it is <a href=#barred-from-constraint-validation>barred from
   constraint validation</a>.<h4 id=the-optgroup-element><span class=secno>4.10.8 </span>The <dfn><code>optgroup</code></dfn> element</h4><dl class=element><dt>Categories</dt>
    <dd>None.</dd>

Received on Tuesday, 7 October 2008 22:28:53 UTC