[html5] r4907 - [e] (0) xref getElementById() Fixing http://www.w3.org/Bugs/Public/show_bug.cgi? [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Mar 30 15:04:22 PDT 2010
Author: ianh
Date: 2010-03-30 15:04:20 -0700 (Tue, 30 Mar 2010)
New Revision: 4907
Modified:
complete.html
index
source
Log:
[e] (0) xref getElementById()
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9200
Modified: complete.html
===================================================================
--- complete.html 2010-03-30 22:00:45 UTC (rev 4906)
+++ complete.html 2010-03-30 22:04:20 UTC (rev 4907)
@@ -3066,6 +3066,7 @@
<li><dfn id=element><code>Element</code></dfn></li>
<li><dfn id=nodelist><code>NodeList</code></dfn></li>
<li><dfn id=textcontent><code>textContent</code></dfn></li>
+ <li><dfn id=getelementbyid()><code>getElementById()</code></dfn></li>
</ul><p>The following features are defined in the DOM Events
specification: <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p>
<ul class=brief><li><dfn id=event><code>Event</code></dfn></li>
@@ -6216,9 +6217,9 @@
<ol><li>If the corresponding content attribute is absent, then the
IDL attribute must return null.</li>
- <li>Let <var title="">candidate</var> be the element that the <code title="">document.getElementById()</code> method would find if it
- was passed as its argument the current value of the corresponding
- content attribute.</li>
+ <li>Let <var title="">candidate</var> be the element that the <code title=getElementById()><a href=#getelementbyid()>document.getElementById()</a></code> method
+ would find if it was passed as its argument the current value of
+ the corresponding content attribute.</li>
<li>If <var title="">candidate</var> is null, or if it is not
type-compatible with the IDL attribute, then the IDL attribute must
@@ -8068,20 +8069,16 @@
<p id="p3" class="bbb ccc"/>
</div></pre>
- <p>A call to
- <code>document.getElementById('example').getElementsByClassName('aaa')</code>
- would return a <code><a href=#nodelist>NodeList</a></code> with the two paragraphs
- <code>p1</code> and <code>p2</code> in it.</p>
+ <p>A call to <code title="">document.getElementById('example').getElementsByClassName('aaa')</code>
+ would return a <code><a href=#nodelist>NodeList</a></code> with the two paragraphs <code title="">p1</code> and <code title="">p2</code> in it.</p>
- <p>A call to <code>getElementsByClassName('ccc bbb')</code>
- would only return one node, however, namely <code>p3</code>. A call
- to
- <code>document.getElementById('example').getElementsByClassName('bbb ccc ')</code>
+ <p>A call to <code title="">getElementsByClassName('ccc bbb')</code> would only
+ return one node, however, namely <code title="">p3</code>. A call
+ to <code title="">document.getElementById('example').getElementsByClassName('bbb ccc ')</code>
would return the same thing.</p>
- <p>A call to <code>getElementsByClassName('aaa,bbb')</code> would
- return no nodes; none of the elements above are in the "aaa,bbb"
- class.</p>
+ <p>A call to <code title="">getElementsByClassName('aaa,bbb')</code> would return no
+ nodes; none of the elements above are in the "aaa,bbb" class.</p>
</div>
@@ -8644,7 +8641,7 @@
the element with the given value (exactly, including any space
characters) for the purposes of ID matching within the element's
<a href=#home-subtree>home subtree</a> (e.g. for selectors in CSS or for the
- <code>getElementById()</code> method in the DOM).</p>
+ <code><a href=#getelementbyid()>getElementById()</a></code> method in the DOM).</p>
<p>Identifiers are opaque strings. Particular meanings should not be
derived from the value of the <code title=attr-id><a href=#the-id-attribute>id</a></code>
@@ -45218,7 +45215,7 @@
attribute gives the element's <a href=#context-menus title="context menus">context
menu</a>. The value must be the ID of a <code><a href=#menus>menu</a></code> element
in the DOM. <span class=impl>If the node that would be obtained by
- the invoking the <code>getElementById()</code> method using the
+ the invoking the <code><a href=#getelementbyid()>getElementById()</a></code> method using the
attribute's value as the only argument is null or not a
<code><a href=#menus>menu</a></code> element, then the element has no assigned context
menu. Otherwise, the element's assigned context menu is the element
Modified: index
===================================================================
--- index 2010-03-30 22:00:45 UTC (rev 4906)
+++ index 2010-03-30 22:04:20 UTC (rev 4907)
@@ -2964,6 +2964,7 @@
<li><dfn id=element><code>Element</code></dfn></li>
<li><dfn id=nodelist><code>NodeList</code></dfn></li>
<li><dfn id=textcontent><code>textContent</code></dfn></li>
+ <li><dfn id=getelementbyid()><code>getElementById()</code></dfn></li>
</ul><p>The following features are defined in the DOM Events
specification: <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p>
<ul class=brief><li><dfn id=event><code>Event</code></dfn></li>
@@ -6114,9 +6115,9 @@
<ol><li>If the corresponding content attribute is absent, then the
IDL attribute must return null.</li>
- <li>Let <var title="">candidate</var> be the element that the <code title="">document.getElementById()</code> method would find if it
- was passed as its argument the current value of the corresponding
- content attribute.</li>
+ <li>Let <var title="">candidate</var> be the element that the <code title=getElementById()><a href=#getelementbyid()>document.getElementById()</a></code> method
+ would find if it was passed as its argument the current value of
+ the corresponding content attribute.</li>
<li>If <var title="">candidate</var> is null, or if it is not
type-compatible with the IDL attribute, then the IDL attribute must
@@ -7966,20 +7967,16 @@
<p id="p3" class="bbb ccc"/>
</div></pre>
- <p>A call to
- <code>document.getElementById('example').getElementsByClassName('aaa')</code>
- would return a <code><a href=#nodelist>NodeList</a></code> with the two paragraphs
- <code>p1</code> and <code>p2</code> in it.</p>
+ <p>A call to <code title="">document.getElementById('example').getElementsByClassName('aaa')</code>
+ would return a <code><a href=#nodelist>NodeList</a></code> with the two paragraphs <code title="">p1</code> and <code title="">p2</code> in it.</p>
- <p>A call to <code>getElementsByClassName('ccc bbb')</code>
- would only return one node, however, namely <code>p3</code>. A call
- to
- <code>document.getElementById('example').getElementsByClassName('bbb ccc ')</code>
+ <p>A call to <code title="">getElementsByClassName('ccc bbb')</code> would only
+ return one node, however, namely <code title="">p3</code>. A call
+ to <code title="">document.getElementById('example').getElementsByClassName('bbb ccc ')</code>
would return the same thing.</p>
- <p>A call to <code>getElementsByClassName('aaa,bbb')</code> would
- return no nodes; none of the elements above are in the "aaa,bbb"
- class.</p>
+ <p>A call to <code title="">getElementsByClassName('aaa,bbb')</code> would return no
+ nodes; none of the elements above are in the "aaa,bbb" class.</p>
</div>
@@ -8542,7 +8539,7 @@
the element with the given value (exactly, including any space
characters) for the purposes of ID matching within the element's
<a href=#home-subtree>home subtree</a> (e.g. for selectors in CSS or for the
- <code>getElementById()</code> method in the DOM).</p>
+ <code><a href=#getelementbyid()>getElementById()</a></code> method in the DOM).</p>
<p>Identifiers are opaque strings. Particular meanings should not be
derived from the value of the <code title=attr-id><a href=#the-id-attribute>id</a></code>
@@ -45119,7 +45116,7 @@
attribute gives the element's <a href=#context-menus title="context menus">context
menu</a>. The value must be the ID of a <code><a href=#menus>menu</a></code> element
in the DOM. <span class=impl>If the node that would be obtained by
- the invoking the <code>getElementById()</code> method using the
+ the invoking the <code><a href=#getelementbyid()>getElementById()</a></code> method using the
attribute's value as the only argument is null or not a
<code><a href=#menus>menu</a></code> element, then the element has no assigned context
menu. Otherwise, the element's assigned context menu is the element
Modified: source
===================================================================
--- source 2010-03-30 22:00:45 UTC (rev 4906)
+++ source 2010-03-30 22:04:20 UTC (rev 4907)
@@ -1979,6 +1979,7 @@
<li><dfn><code>Element</code></dfn></li>
<li><dfn><code>NodeList</code></dfn></li>
<li><dfn><code>textContent</code></dfn></li>
+ <li><dfn><code>getElementById()</code></dfn></li>
</ul>
<p>The following features are defined in the DOM Events
@@ -5776,9 +5777,9 @@
IDL attribute must return null.</li>
<li>Let <var title="">candidate</var> be the element that the <code
- title="">document.getElementById()</code> method would find if it
- was passed as its argument the current value of the corresponding
- content attribute.</li>
+ title="getElementById()">document.getElementById()</code> method
+ would find if it was passed as its argument the current value of
+ the corresponding content attribute.</li>
<li>If <var title="">candidate</var> is null, or if it is not
type-compatible with the IDL attribute, then the IDL attribute must
@@ -7970,20 +7971,21 @@
<p id="p3" class="bbb ccc"/>
</div></pre>
- <p>A call to
- <code>document.getElementById('example').getElementsByClassName('aaa')</code>
- would return a <code>NodeList</code> with the two paragraphs
- <code>p1</code> and <code>p2</code> in it.</p>
+ <p>A call to <code
+ title="">document.getElementById('example').getElementsByClassName('aaa')</code>
+ would return a <code>NodeList</code> with the two paragraphs <code
+ title="">p1</code> and <code title="">p2</code> in it.</p>
- <p>A call to <code>getElementsByClassName('ccc bbb')</code>
- would only return one node, however, namely <code>p3</code>. A call
- to
- <code>document.getElementById('example').getElementsByClassName('bbb ccc ')</code>
+ <p>A call to <code
+ title="">getElementsByClassName('ccc bbb')</code> would only
+ return one node, however, namely <code title="">p3</code>. A call
+ to <code
+ title="">document.getElementById('example').getElementsByClassName('bbb ccc ')</code>
would return the same thing.</p>
- <p>A call to <code>getElementsByClassName('aaa,bbb')</code> would
- return no nodes; none of the elements above are in the "aaa,bbb"
- class.</p>
+ <p>A call to <code
+ title="">getElementsByClassName('aaa,bbb')</code> would return no
+ nodes; none of the elements above are in the "aaa,bbb" class.</p>
</div>
More information about the Commit-Watchers
mailing list