Skip to content

Commit

Permalink
[ct] (2) Handling of </html>, </head>, </body> end tags in the <html>…
Browse files Browse the repository at this point in the history
… 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 d2fa356
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
12 changes: 9 additions & 3 deletions index
Expand Up @@ -35559,7 +35559,7 @@ function receiver(e) {
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>

Expand Down Expand Up @@ -36173,7 +36173,7 @@ simplified explanation instead:
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
Expand All @@ -36184,6 +36184,8 @@ simplified explanation instead:
<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
Expand Down Expand Up @@ -36459,7 +36461,9 @@ simplified explanation instead:
<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>
Expand Down Expand Up @@ -36488,6 +36492,8 @@ simplified explanation instead:
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
Expand Down
15 changes: 12 additions & 3 deletions source
Expand Up @@ -32800,7 +32800,7 @@ function receiver(e) {
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>
Expand Down Expand Up @@ -33392,7 +33392,7 @@ simplified explanation instead:

</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
Expand All @@ -33403,7 +33403,11 @@ simplified explanation instead:

<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
Expand Down Expand Up @@ -33688,9 +33692,12 @@ simplified explanation instead:
<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>
Expand Down Expand Up @@ -33721,6 +33728,8 @@ simplified explanation instead:
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>
Expand Down

0 comments on commit d2fa356

Please sign in to comment.