HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/6605

SVNBugCommentTime (UTC)
660513610move .id and ID processing to DOM Core.2011-09-30 17:45
Index: source
===================================================================
--- source	(revision 6604)
+++ source	(revision 6605)
@@ -2698,6 +2698,7 @@
      <li><dfn title="dom-Node-parentNode"><code>parentNode</code></dfn> attribute</li>
      <li><dfn title="dom-Node-namespaceURI"><code>namespaceURI</code></dfn> attribute</li>
      <li><dfn title="dom-Element-tagName"><code>tagName</code></dfn> attribute</li>
+     <li><dfn title="dom-Element-id"><code>id</code></dfn> attribute</li>
      <li><dfn><code>textContent</code></dfn> attribute</li>
 
      <li><dfn><code>Event</code></dfn> interface</li>
@@ -2711,7 +2712,8 @@
      <li>The distinction between <dfn>XML documents</dfn> and <dfn>HTML documents</dfn></li>
      <li>The terms <dfn>quirks mode</dfn>, <dfn>limited-quirks mode</dfn>, and <dfn>no-quirks mode</dfn></li>
      <li>The algorithm to <dfn title="concept-node-clone">clone</dfn> a <code>Node</code>, and the concept of <dfn title="concept-node-clone-ext">cloning steps</dfn> used by tat algorithm</li>
-     <li>The concept of <span>base URL change steps</span> and the definition of what happens when an element is <span>affected by a base URL change</span>.</li>
+     <li>The concept of <dfn>base URL change steps</dfn> and the definition of what happens when an element is <dfn>affected by a base URL change</dfn>.</li>
+     <li>The concept of an element's <dfn title="concept-id">unique identifier (ID)</dfn>.</li>
 
     </ul>
 
@@ -10412,7 +10414,6 @@
 
   <pre class="idl">interface <dfn>HTMLElement</dfn> : <span>Element</span> {
   // <span>metadata attributes</span>
-           attribute DOMString <span title="dom-id">id</span>;
            attribute DOMString <span title="dom-title">title</span>;
            attribute DOMString <span title="dom-lang">lang</span>;
            attribute DOMString <span title="dom-dir">dir</span>;
@@ -10686,8 +10687,11 @@
   <h5>The <dfn title="attr-id"><code>id</code></dfn> attribute</h5>
 
   <p>The <code title="attr-id">id</code> attribute specifies its
-  element's <dfn title="concept-id">unique identifier (ID)</dfn>. The
-  value must be unique amongst all the IDs in the element's <span>home
+  element's <span title="concept-id">unique identifier (ID)</span>. <a
+  href="#refsDOMCORE">[DOMCORE]</a></p>
+
+  <p>The value must be unique amongst all the <span
+  title="concept-id">IDs</span> in the element's <span>home
   subtree</span> and must contain at least one character. The value
   must not contain any <span title="space character">space
   characters</span>.</p>
@@ -10703,26 +10707,10 @@
 
   <div class="impl">
 
-  <p>If the value is not the empty string, user agents must associate
-  the element with the given value (exactly, including any space
-  characters) for the purposes of <span title="concept-id">ID</span> matching within the element's
-  <span>home subtree</span> (e.g. for selectors in CSS or for the
-  <code title="dom-Document-getElementById">getElementById()</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">id</code>
   attribute.</p>
 
-  <p>This specification doesn't preclude an element having multiple
-  IDs, if other mechanisms (e.g. DOM Core methods) can set an
-  element's <span title="concept-id">ID</span> in a way that doesn't conflict with the <code
-  title="attr-id">id</code> attribute.</p>
-
-  <p>The <dfn title="dom-id"><code>id</code></dfn> IDL attribute must
-  <span>reflect</span> the <code title="attr-id">id</code> content
-  attribute.</p>
-
   </div>
 
 
@@ -60680,7 +60668,7 @@
 
    </dd>
 
-   <dt><var title="">element</var> . <code title="dom-id">id</code></dt>
+   <dt><var title="">element</var> . <code title="dom-Element-id">id</code></dt>
 
    <dd>
 
@@ -60824,7 +60812,7 @@
 -->
 
   <p class="note">The <span title="command-facet-ID">ID</span> facet
-  is exposed by the <code title="dom-id">id</code> IDL attribute, the
+  is exposed by the <code title="dom-Element-id">id</code> IDL attribute, the
   <span title="command-facet-Hint">Hint</span> facet is exposed by the
   <code title="dom-title">title</code> IDL attribute, and the <span
   title="command-facet-AccessKey">AccessKey</span> facet is exposed by

|