Skip to content

Commit

Permalink
[cwt] (2) Handle implied end tags with </body>.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@916 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 19, 2007
1 parent 5bf91d9 commit ed3b425
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
21 changes: 12 additions & 9 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=working>Working Draft &mdash; 18 June 2007</h2>
<h2 class="no-num no-toc" id=working>Working Draft &mdash; 19 June 2007</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
Expand Down Expand Up @@ -36593,14 +36593,17 @@ simplified explanation instead:
element, this is a <a href="#parse">parse error</a>. Ignore the
token. (<a href="#innerhtml1"><code>innerHTML</code> case</a>)</p>

<p>Otherwise:</p>

<p class=big-issue>this needs to handle closing of implied elements,
but without closing them</p>

<p>If the <a href="#current4">current node</a> is not the <code><a
href="#body0">body</a></code> element, then this is a <a
href="#parse">parse error</a>.</p>
<p>Otherwise, if there is a node in the <a href="#stack">stack of
open elements</a> that is not either a <code><a
href="#dd">dd</a></code> element, a <code><a
href="#dt">dt</a></code> element, an <code><a
href="#li">li</a></code> element, a <code><a href="#p">p</a></code>
element, a <code><a href="#td">td</a></code> element, a <code><a
href="#th">th</a></code> element, a <code><a
href="#tr">tr</a></code> element, the <code><a
href="#body0">body</a></code> element, or the <code><a
href="#html">html</a></code> element, then this is a <a
href="#parse">parse error</a>.

<p>Change the <a href="#insertion0">insertion mode</a> to "<a
href="#after4" title="insertion mode: after body">after body</a>".</p>
Expand Down
14 changes: 7 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -33846,13 +33846,13 @@ simplified explanation instead:
<span>parse error</span>. Ignore the token.
(<span><code>innerHTML</code> case</span>)</p>

<p>Otherwise:</p>

<p class="big-issue">this needs to handle closing of implied elements, but without closing them</p>

<p>If the <span>current node</span> is not the
<code>body</code> element, then this is a <span>parse
error</span>.</p>
<p>Otherwise, if there is a node in the <span>stack of open
elements</span> that is not either a <code>dd</code> element,
a <code>dt</code> element, an <code>li</code> element, a
<code>p</code> element, a <code>td</code> element, a
<code>th</code> element, a <code>tr</code> element, the
<code>body</code> element, or the <code>html</code> element,
then this is a <span>parse error</span>.</li>

<p>Change the <span>insertion mode</span> to "<span
title="insertion mode: after body">after body</span>".</p>
Expand Down

0 comments on commit ed3b425

Please sign in to comment.