[html5] r2584 - [e] (0) Vaguely try to handwave a better definition of 'subtree' into the spec.

whatwg at whatwg.org whatwg at whatwg.org
Thu Dec 25 00:11:03 PST 2008


Author: ianh
Date: 2008-12-25 00:11:02 -0800 (Thu, 25 Dec 2008)
New Revision: 2584

Modified:
   index
   source
Log:
[e] (0) Vaguely try to handwave a better definition of 'subtree' into the spec.

Modified: index
===================================================================
--- index	2008-12-25 00:25:19 UTC (rev 2583)
+++ index	2008-12-25 08:11:02 UTC (rev 2584)
@@ -1450,6 +1450,9 @@
   if the node is not currently part of the document tree, the root
   element will be an orphaned node.</p>
 
+  <p>A node's <dfn id=home-subtree>home subtree</dfn> is the subtree rooted at that
+  node's <a href=#root-element>root element</a>.</p>
+
   <p>The <code>Document</code> of a <code>Node</code> (such as an
   element) is the <code>Document</code> that the <code>Node</code>'s
   <code title="">ownerDocument</code> DOM attribute returns.</p>
@@ -6549,8 +6552,8 @@
   <h5 id=the-id-attribute><span class=secno>3.3.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 represents its
-  element's unique identifier. The value must be unique in the subtree
-  within which the element finds itself and must contain at least one
+  element's unique identifier. The value must be unique 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>
 
@@ -6559,8 +6562,8 @@
 
   <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 ID matching within the subtree the
-  element finds itself (e.g. for selectors in CSS or for the
+  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>
 
   <p>Identifiers are opaque strings. Particular meanings should not be

Modified: source
===================================================================
--- source	2008-12-25 00:25:19 UTC (rev 2583)
+++ source	2008-12-25 08:11:02 UTC (rev 2584)
@@ -481,6 +481,9 @@
   if the node is not currently part of the document tree, the root
   element will be an orphaned node.</p>
 
+  <p>A node's <dfn>home subtree</dfn> is the subtree rooted at that
+  node's <span>root element</span>.</p>
+
   <p>The <code>Document</code> of a <code>Node</code> (such as an
   element) is the <code>Document</code> that the <code>Node</code>'s
   <code title="">ownerDocument</code> DOM attribute returns.</p>
@@ -6610,8 +6613,8 @@
   <h5>The <dfn title="attr-id"><code>id</code></dfn> attribute</h5>
 
   <p>The <code title="attr-id">id</code> attribute represents its
-  element's unique identifier. The value must be unique in the subtree
-  within which the element finds itself and must contain at least one
+  element's unique identifier. The value must be unique 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>
 
@@ -6620,8 +6623,8 @@
 
   <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 ID matching within the subtree the
-  element finds itself (e.g. for selectors in CSS or for the
+  characters) for the purposes of ID matching within the element's
+  <span>home subtree</span> (e.g. for selectors in CSS or for the
   <code>getElementById()</code> method in the DOM).</p>
 
   <p>Identifiers are opaque strings. Particular meanings should not be




More information about the Commit-Watchers mailing list