Skip to content
Permalink
Browse files

[ct] (2) Handling of </html>, </head>, </body> end tags in the <html>…

… and <head> insertion modes

git-svn-id: http://svn.whatwg.org/webapps@918 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 19, 2007
1 parent 62930fb commit d2fa35649695e83412c6a17730d12a6d5720b912
Showing with 21 additions and 6 deletions.
  1. +9 −3 index
  2. +12 −3 source
12 index
phase</a> and reprocess the current token.</p>

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

title="insertion mode: in head">in head</a>" <a
href="#insertion0">insertion mode</a>.</p>

<dt>An end tag with the tag name "html"
<dt>An end tag whose tag name is one of: "head", "body", "html"

<dd>
<p>Act as if a start tag token with the tag name "head" and no
<dd>
<p><a href="#parse">Parse error</a>. Ignore the token.</p>

<p class=big-issue>Do we really want to ignore end tags here?</p>

<dt>A character token that is <em>not</em> one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE
<p>Change the <a href="#insertion0">insertion mode</a> to "<a
href="#after3" title="insertion mode: after head">after head</a>".</p>

<dt>An end tag with the tag name "html"
<p class=big-issue>innerHTML on HEAD elements?</p>

<dt>An end tag whose tag name is one of: "body", "html"

<dd>
<p>Act as described in the "anything else" entry below.</p>
href="https://bugzilla.mozilla.org/attachment.cgi?id=180157&amp;action=view">some
elements</a> don't trigger the "in body" mode straight away, but
instead get put into the head. Do we want to copy that?</p>

<p class=big-issue>innerHTML on HEAD elements?</p>
</dl>

<dt>If the <a href="#insertion0">insertion mode</a> is "<dfn id=after3
15 source
phase</span> and reprocess the current token.</p>

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

</dd>

</dd>

<dt>An end tag with the tag name "html"</dt>
<dt>An end tag whose tag name is one of: "head", "body", "html"</dt>
<dd>

<p>Act as if a start tag token with the tag name "head" and no

<dt>Any other end tag</dt>
<dd>

<p><span>Parse error</span>. Ignore the token.</p>

<p class="big-issue">Do we really want to ignore end tags here?</p>

</dd>

<dt>A character token that is <em>not</em> one of U+0009 CHARACTER
<p>Change the <span>insertion mode</span> to "<span
title="insertion mode: after head">after head</span>".</p>

<p class="big-issue">innerHTML on HEAD elements?</p>

</dd>

<dt>An end tag with the tag name "html"</dt>

<dt>An end tag whose tag name is one of: "body", "html"</dt>
<dd>

<p>Act as described in the "anything else" entry below.</p>
but instead get put into the head. Do we want to copy
that?</p>

<p class="big-issue">innerHTML on HEAD elements?</p>

</dd>

</dl>

0 comments on commit d2fa356

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