Skip to content

Commit

Permalink
[e] (0) Correct mention of which step to jump to; change the way long…
Browse files Browse the repository at this point in the history
… text nodes are marked up in the examples.

git-svn-id: http://svn.whatwg.org/webapps@3412 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 15, 2009
1 parent eb34532 commit 9d38411
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
19 changes: 9 additions & 10 deletions index
Expand Up @@ -62327,7 +62327,7 @@ document.body.appendChild(text);
then act as if an end tag with the tag name "li" had
been seen, then jump to the last step.</li>

<li><p>If <var title="">node</var> is not in the
<li><p><i>Loop</i>: If <var title="">node</var> is not in the
<a href=#formatting>formatting</a> category, and is not in the
<a href=#phrasing>phrasing</a> category, and is not an
<code><a href=#the-address-element>address</a></code>, <code><a href=#the-div-element>div</a></code>, or <code><a href=#the-p-element>p</a></code>
Expand All @@ -62342,7 +62342,7 @@ document.body.appendChild(text);

<li><p>Otherwise, set <var title="">node</var> to the previous
entry in the <a href=#stack-of-open-elements>stack of open elements</a> and return to
step 2.</li>
the step labeled <i>loop</i>.</li>

<li>

Expand Down Expand Up @@ -62371,10 +62371,10 @@ document.body.appendChild(text);
<li><p>Initialize <var title="">node</var> to be the <a href=#current-node>current
node</a> (the bottommost node of the stack).</li>

<li><p>If <var title="">node</var> is a <code><a href=#the-dd-element>dd</a></code> or
<code><a href=#the-dt-element>dt</a></code> element, then act as if an end tag with the same
tag name as <var title="">node</var> had been seen, then jump to
the last step.</li>
<li><p><i>Loop</i>: If <var title="">node</var> is a
<code><a href=#the-dd-element>dd</a></code> or <code><a href=#the-dt-element>dt</a></code> element, then act as if an end
tag with the same tag name as <var title="">node</var> had been
seen, then jump to the last step.</li>

<li><p>If <var title="">node</var> is not in the
<a href=#formatting>formatting</a> category, and is not in the
Expand All @@ -62391,7 +62391,7 @@ document.body.appendChild(text);

<li><p>Otherwise, set <var title="">node</var> to the previous
entry in the <a href=#stack-of-open-elements>stack of open elements</a> and return to
step 2.</li>
the step labeled <i>loop</i>.</li>

<li>

Expand Down Expand Up @@ -65108,9 +65108,8 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<p>Up to the first "script" end tag, before the script is parsed,
the result is relatively straightforward:</p>

<ul class=domTree><li class=t1><code><a href=#the-html-element>html</a></code><ul><li class=t1><code><a href=#the-head-element>head</a></code><li class=t1><code><a href=#the-body-element>body</a></code><ul><li class=t1><code><a href=#the-div-element>div</a></code> <span class=t2><code class="attribute name">id</code>="<code class="attribute value"><a href=#the-a-element>a</a></code>"</span><ul><li class=t3><code>#text</code>: <span title="">
</span><li class=t1><code><a href=#script>script</a></code><ul><li class=t3><code>#text</code>: <pre> var div = document.getElementById('a');
parent.document.body.appendChild(div);</pre></ul></ul></ul></ul></ul><p>After the script is parsed, though, the <code><a href=#the-div-element>div</a></code> element
<ul class=domTree><li class=t1><code><a href=#the-html-element>html</a></code><ul><li class=t1><code><a href=#the-head-element>head</a></code><li class=t1><code><a href=#the-body-element>body</a></code><ul><li class=t1><code><a href=#the-div-element>div</a></code> <span class=t2 title=""><code class="attribute name">id</code>="<code class="attribute value"><a href=#the-a-element>a</a></code>"</span><ul><li class=t3><code>#text</code>: <span title="">
</span><li class=t1><code><a href=#script>script</a></code><ul><li class=t3><code>#text</code>: <span title="">var div = document.getElementById('a'); &#9166; parent.document.body.appendChild(div);</span></ul></ul></ul></ul></ul><p>After the script is parsed, though, the <code><a href=#the-div-element>div</a></code> element
and its child <code><a href=#script>script</a></code> element are gone:</p>

<ul class=domTree><li class=t1><code><a href=#the-html-element>html</a></code><ul><li class=t1><code><a href=#the-head-element>head</a></code><li class=t1><code><a href=#the-body-element>body</a></code></ul></ul><p>They are, at this point, in the <code>Document</code> of the
Expand Down
19 changes: 9 additions & 10 deletions source
Expand Up @@ -76334,7 +76334,7 @@ document.body.appendChild(text);
then act as if an end tag with the tag name "li" had
been seen, then jump to the last step.</p></li>

<li><p>If <var title="">node</var> is not in the
<li><p><i>Loop</i>: If <var title="">node</var> is not in the
<span>formatting</span> category, and is not in the
<span>phrasing</span> category, and is not an
<code>address</code>, <code>div</code>, or <code>p</code>
Expand All @@ -76349,7 +76349,7 @@ document.body.appendChild(text);

<li><p>Otherwise, set <var title="">node</var> to the previous
entry in the <span>stack of open elements</span> and return to
step 2.</p></li>
the step labeled <i>loop</i>.</p></li>

<li>

Expand Down Expand Up @@ -76382,10 +76382,10 @@ document.body.appendChild(text);
<li><p>Initialize <var title="">node</var> to be the <span>current
node</span> (the bottommost node of the stack).</p></li>

<li><p>If <var title="">node</var> is a <code>dd</code> or
<code>dt</code> element, then act as if an end tag with the same
tag name as <var title="">node</var> had been seen, then jump to
the last step.</p></li>
<li><p><i>Loop</i>: If <var title="">node</var> is a
<code>dd</code> or <code>dt</code> element, then act as if an end
tag with the same tag name as <var title="">node</var> had been
seen, then jump to the last step.</p></li>

<li><p>If <var title="">node</var> is not in the
<span>formatting</span> category, and is not in the
Expand All @@ -76402,7 +76402,7 @@ document.body.appendChild(text);

<li><p>Otherwise, set <var title="">node</var> to the previous
entry in the <span>stack of open elements</span> and return to
step 2.</p></li>
the step labeled <i>loop</i>.</p></li>

<li>

Expand Down Expand Up @@ -79391,9 +79391,8 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<p>Up to the first "script" end tag, before the script is parsed,
the result is relatively straightforward:</p>

<ul class="domTree"><li class="t1"><code>html</code><ul><li class="t1"><code>head</code></li><li class="t1"><code>body</code><ul><li class="t1"><code>div</code> <span class="t2"><code class="attribute name">id</code>="<code class="attribute value">a</code>"</span><ul><li class="t3"><code>#text</code>: <span title="">
</span></li><li class="t1"><code>script</code><ul><li class="t3"><code>#text</code>: <pre> var div = document.getElementById('a');
parent.document.body.appendChild(div);</pre></li></ul></li></ul></li></ul></li></ul></li></ul>
<ul class="domTree"><li class="t1"><code>html</code><ul><li class="t1"><code>head</code></li><li class="t1"><code>body</code><ul><li class="t1"><code>div</code> <span title="" class="t2"><code class="attribute name">id</code>="<code class="attribute value">a</code>"</span><ul><li class="t3"><code>#text</code>: <span title="">
</span></li><li class="t1"><code>script</code><ul><li class="t3"><code>#text</code>: <span title="">var div = document.getElementById('a'); &#x23CE; parent.document.body.appendChild(div);</span></li></ul></li></ul></li></ul></li></ul></li></ul>

<p>After the script is parsed, though, the <code>div</code> element
and its child <code>script</code> element are gone:</p>
Expand Down

0 comments on commit 9d38411

Please sign in to comment.