W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2010

hixie: xref getElementById() (whatwg r4907)

From: poot <cvsmail@w3.org>
Date: Thu, 1 Apr 2010 14:35:30 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100401053530.6F70E2BC79@toro.w3.mag.keio.ac.jp>
hixie: xref getElementById() (whatwg r4907)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3927&r2=1.3928&f=h
http://html5.org/tools/web-apps-tracker?from=4906&to=4907

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3927
retrieving revision 1.3928
diff -u -d -r1.3927 -r1.3928
--- Overview.html	30 Mar 2010 22:00:50 -0000	1.3927
+++ Overview.html	30 Mar 2010 22:04:26 -0000	1.3928
@@ -2578,6 +2578,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>
@@ -5425,9 +5426,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
@@ -6991,20 +6992,16 @@
  &lt;p id="p3" class="bbb ccc"/&gt;
 &lt;/div&gt;</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&nbsp;bbb')</code>
-   would only return one node, however, namely <code>p3</code>. A call
-   to
-   <code>document.getElementById('example').getElementsByClassName('bbb&nbsp;&nbsp;ccc&nbsp;')</code>
+   <p>A call to <code title="">getElementsByClassName('ccc&nbsp;bbb')</code> would only
+   return one node, however, namely <code title="">p3</code>. A call
+   to <code title="">document.getElementById('example').getElementsByClassName('bbb&nbsp;&nbsp;ccc&nbsp;')</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><!-- v2:
 >         * xGetParentElementByClassName(rootElement, className, tagName) -
@@ -7466,7 +7463,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>
@@ -37309,7 +37306,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
Received on Thursday, 1 April 2010 05:36:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:18 GMT