Skip to content

Commit

Permalink
[e] (0) mention that <option name> is obsolete
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9346

git-svn-id: http://svn.whatwg.org/webapps@4954 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 2, 2010
1 parent df0a049 commit 7f61030
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
13 changes: 7 additions & 6 deletions complete.html
Expand Up @@ -6744,7 +6744,7 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.4 </span>HTMLOptionsColle
<dt><var title="">collection</var>[<var title="">name</var>]</dt>
<dt><var title="">collection</var>(<var title="">name</var>)</dt>
<dd>
<p>Returns the item with <a href=#concept-id title=concept-id>ID</a> or <code title=attr-option-name>name</code> <var title="">name</var> from the collection.</p>
<p>Returns the item with <a href=#concept-id title=concept-id>ID</a> or <code title=attr-option-name><a href=#attr-option-name>name</a></code> <var title="">name</var> from the collection.</p>
<p>If there are multiple matching items, then a <code><a href=#nodelist>NodeList</a></code> object containing all those elements is returned.</p>
<p>Returns null if no element with that <a href=#concept-id title=concept-id>ID</a> could be found.</p>
</dd>
Expand Down Expand Up @@ -6796,25 +6796,25 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.4 </span>HTMLOptionsColle
remove children from them).</p>

<p>The <span>names of the supported named properties</span> consist
of the values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-option-name>name</code> attributes of all the elements
of the values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-option-name><a href=#attr-option-name>name</a></code> attributes of all the elements
<a href=#represented-by-the-collection>represented by the collection</a>.</p>

<p>The <dfn id=dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem><code>namedItem(<var title="">name</var>)</code></dfn> method must act according to the
following algorithm:</p>

<ol><li>If, at the time the method is called, there is exactly one node
in the collection that has either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name>name</code> attribute equal to <var title="">name</var>, then return that node and stop the
in the collection that has either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>, then return that node and stop the
algorithm.</li>

<li>Otherwise, if there are no nodes in the collection that have
either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name>name</code> attribute equal to <var title="">name</var>, then return null and stop the algorithm.</li>
either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>, then return null and stop the algorithm.</li>

<!-- IE returns an HTMLCollection instead; we may need to change to that for compat -->
<li>Otherwise, create a new <code><a href=#nodelist>NodeList</a></code> object
representing a <a href=#live>live</a> view of the
<code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> object, further filtered so that
the only nodes in the <code><a href=#nodelist>NodeList</a></code> object are those that
have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name>name</code> attribute equal to <var title="">name</var>. The nodes in the <code><a href=#nodelist>NodeList</a></code> object
have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>. The nodes in the <code><a href=#nodelist>NodeList</a></code> object
must be sorted in <a href=#tree-order>tree order</a>.</li>

<li>Return that <code><a href=#nodelist>NodeList</a></code> object.</li>
Expand Down Expand Up @@ -38704,7 +38704,7 @@ <h4 id=the-select-element><span class=secno>4.10.9 </span>The <dfn><code>select<
<dt><var title="">select</var>[<var title="">name</var>]</dt>
<dt><var title="">select</var>(<var title="">name</var>)</dt>
<dd>
<p>Returns the item with ID or <code title=attr-option-name>name</code> <var title="">name</var> from the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>.</p>
<p>Returns the item with ID or <code title=attr-option-name><a href=#attr-option-name>name</a></code> <var title="">name</var> from the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>.</p>
<p>If there are multiple matching items, then a <code><a href=#nodelist>NodeList</a></code> object containing all those elements is returned.</p>
<p>Returns null if no element with that ID could be found.</p>
</dd>
Expand Down Expand Up @@ -84237,6 +84237,7 @@ <h3 id=non-conforming-features><span class=secno>15.2 </span>Non-conforming feat
<dt><dfn id=attr-a-name title=attr-a-name><code>name</code></dfn> on <code><a href=#the-a-element>a</a></code> elements (except as noted in the previous section)</dt>
<dt><dfn id=attr-embed-name title=attr-embed-name><code>name</code></dfn> on <code><a href=#the-embed-element>embed</a></code> elements</dt>
<dt><dfn id=attr-img-name title=attr-img-name><code>name</code></dfn> on <code><a href=#the-img-element>img</a></code> elements</dt>
<dt><dfn id=attr-option-name title=attr-option-name><code>name</code></dfn> on <code><a href=#the-option-element>option</a></code> elements</dt>
<dd><p>Use the <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute instead.</dd>

<dt><dfn id=attr-a-rev title=attr-a-rev><code>rev</code></dfn> on <code><a href=#the-a-element>a</a></code> elements</dt>
Expand Down
13 changes: 7 additions & 6 deletions index
Expand Up @@ -6642,7 +6642,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<dt><var title="">collection</var>[<var title="">name</var>]</dt>
<dt><var title="">collection</var>(<var title="">name</var>)</dt>
<dd>
<p>Returns the item with <a href=#concept-id title=concept-id>ID</a> or <code title=attr-option-name>name</code> <var title="">name</var> from the collection.</p>
<p>Returns the item with <a href=#concept-id title=concept-id>ID</a> or <code title=attr-option-name><a href=#attr-option-name>name</a></code> <var title="">name</var> from the collection.</p>
<p>If there are multiple matching items, then a <code><a href=#nodelist>NodeList</a></code> object containing all those elements is returned.</p>
<p>Returns null if no element with that <a href=#concept-id title=concept-id>ID</a> could be found.</p>
</dd>
Expand Down Expand Up @@ -6694,25 +6694,25 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
remove children from them).</p>

<p>The <span>names of the supported named properties</span> consist
of the values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-option-name>name</code> attributes of all the elements
of the values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> and <code title=attr-option-name><a href=#attr-option-name>name</a></code> attributes of all the elements
<a href=#represented-by-the-collection>represented by the collection</a>.</p>

<p>The <dfn id=dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem><code>namedItem(<var title="">name</var>)</code></dfn> method must act according to the
following algorithm:</p>

<ol><li>If, at the time the method is called, there is exactly one node
in the collection that has either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name>name</code> attribute equal to <var title="">name</var>, then return that node and stop the
in the collection that has either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>, then return that node and stop the
algorithm.</li>

<li>Otherwise, if there are no nodes in the collection that have
either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name>name</code> attribute equal to <var title="">name</var>, then return null and stop the algorithm.</li>
either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>, then return null and stop the algorithm.</li>

<!-- IE returns an HTMLCollection instead; we may need to change to that for compat -->
<li>Otherwise, create a new <code><a href=#nodelist>NodeList</a></code> object
representing a <a href=#live>live</a> view of the
<code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> object, further filtered so that
the only nodes in the <code><a href=#nodelist>NodeList</a></code> object are those that
have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name>name</code> attribute equal to <var title="">name</var>. The nodes in the <code><a href=#nodelist>NodeList</a></code> object
have either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>. The nodes in the <code><a href=#nodelist>NodeList</a></code> object
must be sorted in <a href=#tree-order>tree order</a>.</li>

<li>Return that <code><a href=#nodelist>NodeList</a></code> object.</li>
Expand Down Expand Up @@ -38605,7 +38605,7 @@ You cannot complete this form until the field is correct.</samp></pre>
<dt><var title="">select</var>[<var title="">name</var>]</dt>
<dt><var title="">select</var>(<var title="">name</var>)</dt>
<dd>
<p>Returns the item with ID or <code title=attr-option-name>name</code> <var title="">name</var> from the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>.</p>
<p>Returns the item with ID or <code title=attr-option-name><a href=#attr-option-name>name</a></code> <var title="">name</var> from the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>.</p>
<p>If there are multiple matching items, then a <code><a href=#nodelist>NodeList</a></code> object containing all those elements is returned.</p>
<p>Returns null if no element with that ID could be found.</p>
</dd>
Expand Down Expand Up @@ -77509,6 +77509,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
<dt><dfn id=attr-a-name title=attr-a-name><code>name</code></dfn> on <code><a href=#the-a-element>a</a></code> elements (except as noted in the previous section)</dt>
<dt><dfn id=attr-embed-name title=attr-embed-name><code>name</code></dfn> on <code><a href=#the-embed-element>embed</a></code> elements</dt>
<dt><dfn id=attr-img-name title=attr-img-name><code>name</code></dfn> on <code><a href=#the-img-element>img</a></code> elements</dt>
<dt><dfn id=attr-option-name title=attr-option-name><code>name</code></dfn> on <code><a href=#the-option-element>option</a></code> elements</dt>
<dd><p>Use the <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute instead.</dd>

<dt><dfn id=attr-a-rev title=attr-a-rev><code>rev</code></dfn> on <code><a href=#the-a-element>a</a></code> elements</dt>
Expand Down
1 change: 1 addition & 0 deletions source
Expand Up @@ -95929,6 +95929,7 @@ time:empty { binding: <i title="">time</i>; }</pre>
<dt><dfn title="attr-a-name"><code>name</code></dfn> on <code>a</code> elements (except as noted in the previous section)</dt>
<dt><dfn title="attr-embed-name"><code>name</code></dfn> on <code>embed</code> elements</dt>
<dt><dfn title="attr-img-name"><code>name</code></dfn> on <code>img</code> elements</dt>
<dt><dfn title="attr-option-name"><code>name</code></dfn> on <code>option</code> elements</dt>
<dd><p>Use the <code title="attr-id">id</code> attribute instead.</p></dd>

<dt><dfn title="attr-a-rev"><code>rev</code></dfn> on <code>a</code> elements</dt>
Expand Down

0 comments on commit 7f61030

Please sign in to comment.