Skip to content

Commit

Permalink
[e] (0) Vaguely try to handwave a better definition of 'subtree' into…
Browse files Browse the repository at this point in the history
… the spec.

git-svn-id: http://svn.whatwg.org/webapps@2584 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 25, 2008
1 parent 5f22b05 commit 78cd155
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions index
Expand Up @@ -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>
Expand Down Expand Up @@ -6549,8 +6552,8 @@ interface <dfn id=domstringmap-0>DOMStringMap</dfn> {};</pre>
<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>

Expand All @@ -6559,8 +6562,8 @@ interface <dfn id=domstringmap-0>DOMStringMap</dfn> {};</pre>

<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
Expand Down
11 changes: 7 additions & 4 deletions source
Expand Up @@ -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>
Expand Down Expand Up @@ -6610,8 +6613,8 @@ interface <dfn>DOMStringMap</dfn> {};</pre>
<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>

Expand All @@ -6620,8 +6623,8 @@ interface <dfn>DOMStringMap</dfn> {};</pre>

<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
Expand Down

0 comments on commit 78cd155

Please sign in to comment.