<p>Returns the item with <ahref=#concept-idtitle=concept-id>ID</a> or <codetitle=attr-option-name>name</code><vartitle="">name</var> from the collection.</p>
<p>Returns the item with <ahref=#concept-idtitle=concept-id>ID</a> or <codetitle=attr-option-name><ahref=#attr-option-name>name</a></code><vartitle="">name</var> from the collection.</p>
<p>If there are multiple matching items, then a <code><ahref=#nodelist>NodeList</a></code> object containing all those elements is returned.</p>
<p>Returns null if no element with that <ahref=#concept-idtitle=concept-id>ID</a> could be found.</p>
<p>The <span>names of the supported named properties</span> consist
of the values of all the <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> and <codetitle=attr-option-name>name</code> attributes of all the elements
of the values of all the <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> and <codetitle=attr-option-name><ahref=#attr-option-name>name</a></code> attributes of all the elements
<ahref=#represented-by-the-collection>represented by the collection</a>.</p>
<p>The <dfnid=dom-htmloptionscollection-nameditemtitle=dom-HTMLOptionsCollection-namedItem><code>namedItem(<vartitle="">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 <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> attribute or a <codetitle=attr-option-name>name</code> attribute equal to <vartitle="">name</var>, then return that node and stop the
in the collection that has either an <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> attribute or a <codetitle=attr-option-name><ahref=#attr-option-name>name</a></code> attribute equal to <vartitle="">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 <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> attribute or a <codetitle=attr-option-name>name</code> attribute equal to <vartitle="">name</var>, then return null and stop the algorithm.</li>
either an <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> attribute or a <codetitle=attr-option-name><ahref=#attr-option-name>name</a></code> attribute equal to <vartitle="">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><ahref=#nodelist>NodeList</a></code> object
representing a <ahref=#live>live</a> view of the
<code><ahref=#htmloptionscollection>HTMLOptionsCollection</a></code> object, further filtered so that
the only nodes in the <code><ahref=#nodelist>NodeList</a></code> object are those that
have either an <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> attribute or a <codetitle=attr-option-name>name</code> attribute equal to <vartitle="">name</var>. The nodes in the <code><ahref=#nodelist>NodeList</a></code> object
have either an <codetitle=attr-id><ahref=#the-id-attribute>id</a></code> attribute or a <codetitle=attr-option-name><ahref=#attr-option-name>name</a></code> attribute equal to <vartitle="">name</var>. The nodes in the <code><ahref=#nodelist>NodeList</a></code> object
must be sorted in <ahref=#tree-order>tree order</a>.</li>
<li>Return that <code><ahref=#nodelist>NodeList</a></code> object.</li>
<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>
<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>
<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>
<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>
<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>
<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>