hixie: move .id and ID processing to DOM Core. (whatwg r6605)

hixie: move .id and ID processing to DOM Core. (whatwg r6605)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5297&r2=1.5298&f=h
http://html5.org/tools/web-apps-tracker?from=6604&to=6605

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5297
retrieving revision 1.5298
diff -u -d -r1.5297 -r1.5298
--- Overview.html 30 Sep 2011 17:15:24 -0000 1.5297
+++ Overview.html 30 Sep 2011 17:47:53 -0000 1.5298
@@ -3128,6 +3128,7 @@
      <li><dfn id="dom-node-parentnode" title="dom-Node-parentNode"><code>parentNode</code></dfn> attribute</li>
      <li><dfn id="dom-node-namespaceuri" title="dom-Node-namespaceURI"><code>namespaceURI</code></dfn> attribute</li>
      <li><dfn id="dom-element-tagname" title="dom-Element-tagName"><code>tagName</code></dfn> attribute</li>
+     <li><dfn id="dom-element-id" title="dom-Element-id"><code>id</code></dfn> attribute</li>
      <li><dfn id="textcontent"><code>textContent</code></dfn> attribute</li>
 
      <li><dfn id="event"><code>Event</code></dfn> interface</li>
@@ -3141,7 +3142,8 @@
      <li>The distinction between <dfn id="xml-documents">XML documents</dfn> and <dfn id="html-documents">HTML documents</dfn></li>
      <li>The terms <dfn id="quirks-mode">quirks mode</dfn>, <dfn id="limited-quirks-mode">limited-quirks mode</dfn>, and <dfn id="no-quirks-mode">no-quirks mode</dfn></li>
      <li>The algorithm to <dfn id="concept-node-clone" title="concept-node-clone">clone</dfn> a <code><a href="#node">Node</a></code>, and the concept of <dfn id="concept-node-clone-ext" 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 id="base-url-change-steps">base URL change steps</dfn> and the definition of what happens when an element is <dfn id="affected-by-a-base-url-change">affected by a base URL change</dfn>.</li>
+     <li>The concept of an element's <dfn id="concept-id" title="concept-id">unique identifier (ID)</dfn>.</li>
 
     </ul><p>The term <dfn id="throw">throw</dfn> in this specification is used as
     defined in the DOM Core specification. The following
@@ -5946,14 +5948,14 @@
 
   <p>When an <code title="attr-xml-base"><a href="#the-xml:base-attribute-xml-only">xml:base</a></code> attribute
   changes, the attribute's element, and all descendant elements, are
-  <span>affected by a base URL change</span>.</p>
+  <a href="#affected-by-a-base-url-change">affected by a base URL change</a>.</p>
 
   <p>When a document's <a href="#document-base-url">document base URL</a> changes, all
-  elements in that document are <span>affected by a base URL
-  change</span>.</p>
+  elements in that document are <a href="#affected-by-a-base-url-change">affected by a base URL
+  change</a>.</p>
 
-  <p>The following are <span>base URL change steps</span>, which run
-  when an element is <span>affected by a base URL change</span> (as
+  <p>The following are <a href="#base-url-change-steps">base URL change steps</a>, which run
+  when an element is <a href="#affected-by-a-base-url-change">affected by a base URL change</a> (as
   defined by the DOM Core specification):</p>
 
   <dl class="switch"><dt>If the element creates a <a href="#hyperlink">hyperlink</a></dt>
@@ -8471,7 +8473,6 @@
   must be used by elements that have no additional
   requirements,</span> is the <code><a href="#htmlelement">HTMLElement</a></code> interface.<pre class="idl">interface <dfn id="htmlelement">HTMLElement</dfn> : <a href="#element">Element</a> {
   // <span>metadata attributes</span>
-           attribute DOMString <a href="#dom-id" title="dom-id">id</a>;
            attribute DOMString <a href="#dom-title" title="dom-title">title</a>;
            attribute DOMString <a href="#dom-lang" title="dom-lang">lang</a>;
            attribute DOMString <a href="#dom-dir" title="dom-dir">dir</a>;
@@ -8670,8 +8671,7 @@
   and attributes, a set of <a href="#wai-aria" title="WAI-ARIA">annotations for
   assistive technology products</a> can be specified (the ARIA
   <code title="attr-aria-role">role</code> and <code title="attr-aria-*">aria-*</code> attributes).<h5 id="the-id-attribute"><span class="secno">3.2.3.1 </span>The <dfn title="attr-id"><code>id</code></dfn> attribute</h5><p>The <code title="attr-id"><a href="#the-id-attribute">id</a></code> attribute specifies its
-  element's <dfn id="concept-id" title="concept-id">unique identifier (ID)</dfn>. The
-  value must be unique amongst all the IDs in the element's <a href="#home-subtree">home
+  element's <a href="#concept-id" title="concept-id">unique identifier (ID)</a>. <a href="#refsDOMCORE">[DOMCORE]</a><p>The value must be unique amongst all the <a href="#concept-id" title="concept-id">IDs</a> in the element's <a href="#home-subtree">home
   subtree</a> and must contain at least one character. The value
   must not contain any <a href="#space-character" title="space character">space
   characters</a>.</p><p class="note">An element's <a href="#concept-id" title="concept-id">unique
@@ -8680,25 +8680,10 @@
   fragment identifiers, as a way to target an element when scripting,
   and as a way to style a specific element from CSS.<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 <a href="#concept-id" title="concept-id">ID</a> matching within the element's
-  <a href="#home-subtree">home subtree</a> (e.g. for selectors in CSS or for the
-  <code title="dom-Document-getElementById"><a href="#dom-document-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>
   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 <a href="#concept-id" title="concept-id">ID</a> in a way that doesn't conflict with the <code title="attr-id"><a href="#the-id-attribute">id</a></code> attribute.</p>
-
-  <p>The <dfn id="dom-id" title="dom-id"><code>id</code></dfn> IDL attribute must
-  <a href="#reflect">reflect</a> the <code title="attr-id"><a href="#the-id-attribute">id</a></code> content
-  attribute.</p>
-
   </div><h5 id="the-title-attribute"><span class="secno">3.2.3.2 </span>The <dfn title="attr-title"><code>title</code></dfn> attribute</h5><p>The <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute
   <a href="#represents">represents</a> advisory information for the element, such
   as would be appropriate for a tooltip. On a link, this could be the
@@ -41139,7 +41124,7 @@
 
    </dd>
 
-   <dt><var title="">element</var> . <code title="dom-id"><a href="#dom-id">id</a></code></dt>
+   <dt><var title="">element</var> . <code title="dom-Element-id"><a href="#dom-element-id">id</a></code></dt>
 
    <dd>
 
@@ -41250,7 +41235,7 @@
 
 
   <p class="note">The <a href="#command-facet-id" title="command-facet-ID">ID</a> facet
-  is exposed by the <code title="dom-id"><a href="#dom-id">id</a></code> IDL attribute, the
+  is exposed by the <code title="dom-Element-id"><a href="#dom-element-id">id</a></code> IDL attribute, the
   <a href="#command-facet-hint" title="command-facet-Hint">Hint</a> facet is exposed by the
   <code title="dom-title"><a href="#dom-title">title</a></code> IDL attribute, and the <a href="#command-facet-accesskey" title="command-facet-AccessKey">AccessKey</a> facet is exposed by
   the <code title="dom-accessKeyLabel"><a href="#dom-accesskeylabel">accessKeyLabel</a></code> IDL

Received on Friday, 30 September 2011 17:48:10 UTC