Skip to content
Permalink
Browse files

[cgt] (2) Ignore (most) end tags before the <html> tag.

git-svn-id: http://svn.whatwg.org/webapps@3896 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Sep 18, 2009
1 parent b593c28 commit 89872f9546b9727ff59daebacedf18de626c56d9
Showing with 20 additions and 8 deletions.
  1. +10 −4 index
  2. +10 −4 source
14 index

</dd>

<dt>An end tag whose tag name is one of: "head", "body", "html", "br"</dt>
<dd>
<p>Act as described in the "anything else" entry below.</p>
</dd>

<dt>Any other end tag</dt>
<dd>
<p><a href=#parse-error>Parse error</a>. Ignore the token.</p>
</dd>

<dt>Anything else</dt>
<dd>

<p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>", then
reprocess the current token.</p>

<p class=XXX>Should probably make end tags be ignored, so
that "&lt;/head&gt;&lt;!-- --&gt;&lt;html&gt;" puts the comment before the
root node (or should we?)</p>

</dd>

</dl><p>The root element can end up being removed from the
14 source

</dd>

<dt>An end tag whose tag name is one of: "head", "body", "html", "br"</dt>
<dd>
<p>Act as described in the "anything else" entry below.</p>
</dd>

<dt>Any other end tag</dt>
<dd>
<p><span>Parse error</span>. Ignore the token.</p>
</dd>

<dt>Anything else</dt>
<dd>

title="insertion mode: before head">before head</span>", then
reprocess the current token.</p>

<p class="XXX">Should probably make end tags be ignored, so
that "&lt;/head>&lt;!-- -->&lt;html>" puts the comment before the
root node (or should we?)</p>

</dd>

</dl>

0 comments on commit 89872f9

Please sign in to comment.
You can’t perform that action at this time.