[html5] r8218 - [giow] (3) Update the HTML parser to handle <html><head></head><template></templ [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 9 15:35:02 PDT 2013
Author: ianh
Date: 2013-10-09 15:35:00 -0700 (Wed, 09 Oct 2013)
New Revision: 8218
Modified:
complete.html
index
source
Log:
[giow] (3) Update the HTML parser to handle <html><head></head><template></template><!---->
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23002
Affected topics: HTML Syntax and Parsing
Modified: complete.html
===================================================================
--- complete.html 2013-10-09 22:25:27 UTC (rev 8217)
+++ complete.html 2013-10-09 22:35:00 UTC (rev 8218)
@@ -86924,8 +86924,7 @@
<li><i>Loop</i>: If <var title="">node</var> is the first node in
the stack of open elements, then set <var title="">last</var> to
- true and set <var title="">node</var> to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.
- (<a href=#fragment-case>fragment case</a>)</li>
+ true and set <var title="">node</var> to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</li>
<li>
@@ -87016,12 +87015,20 @@
then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inframeset title="insertion mode: in frameset">in frameset</a>" and abort
these steps. (<a href=#fragment-case>fragment case</a>)</li>
- <li>If <var title="">node</var> is an <code><a href=#the-html-element>html</a></code> element,
- then 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>" and abort these steps. (<a href=#fragment-case>fragment
- case</a>)</li>
+ <li>
+ <p>If <var title="">node</var> is an <code><a href=#the-html-element>html</a></code> element, run these substeps:</p>
+
+ <ol><li><p>If the <a href=#head-element-pointer><code>head</code> element pointer</a> is null, 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>"
+ and abort these steps. (<a href=#fragment-case>fragment case</a>)</li>
+
+ <li><p>Otherwise, the <a href=#head-element-pointer><code>head</code> element pointer</a> is not null, switch the
+ <a href=#insertion-mode>insertion mode</a> to "<a href=#the-after-head-insertion-mode title="insertion mode: after head">after head</a>"
+ and abort these steps.</li> <!-- consider <html><head></head><template></template> -->
+
+ </ol></li>
+
<li>If <var title="">last</var> is true, then switch the
<a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in
body">in body</a>" and abort these steps. (<a href=#fragment-case>fragment
Modified: index
===================================================================
--- index 2013-10-09 22:25:27 UTC (rev 8217)
+++ index 2013-10-09 22:35:00 UTC (rev 8218)
@@ -86924,8 +86924,7 @@
<li><i>Loop</i>: If <var title="">node</var> is the first node in
the stack of open elements, then set <var title="">last</var> to
- true and set <var title="">node</var> to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.
- (<a href=#fragment-case>fragment case</a>)</li>
+ true and set <var title="">node</var> to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</li>
<li>
@@ -87016,12 +87015,20 @@
then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inframeset title="insertion mode: in frameset">in frameset</a>" and abort
these steps. (<a href=#fragment-case>fragment case</a>)</li>
- <li>If <var title="">node</var> is an <code><a href=#the-html-element>html</a></code> element,
- then 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>" and abort these steps. (<a href=#fragment-case>fragment
- case</a>)</li>
+ <li>
+ <p>If <var title="">node</var> is an <code><a href=#the-html-element>html</a></code> element, run these substeps:</p>
+
+ <ol><li><p>If the <a href=#head-element-pointer><code>head</code> element pointer</a> is null, 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>"
+ and abort these steps. (<a href=#fragment-case>fragment case</a>)</li>
+
+ <li><p>Otherwise, the <a href=#head-element-pointer><code>head</code> element pointer</a> is not null, switch the
+ <a href=#insertion-mode>insertion mode</a> to "<a href=#the-after-head-insertion-mode title="insertion mode: after head">after head</a>"
+ and abort these steps.</li> <!-- consider <html><head></head><template></template> -->
+
+ </ol></li>
+
<li>If <var title="">last</var> is true, then switch the
<a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inbody title="insertion mode: in
body">in body</a>" and abort these steps. (<a href=#fragment-case>fragment
Modified: source
===================================================================
--- source 2013-10-09 22:25:27 UTC (rev 8217)
+++ source 2013-10-09 22:35:00 UTC (rev 8218)
@@ -97008,8 +97008,7 @@
<li><i>Loop</i>: If <var title="">node</var> is the first node in
the stack of open elements, then set <var title="">last</var> to
true and set <var title="">node</var> to the <var
- title="concept-frag-parse-context">context</var> element.
- (<span>fragment case</span>)</li>
+ title="concept-frag-parse-context">context</var> element.</li>
<li>
@@ -97109,12 +97108,24 @@
title="insertion mode: in frameset">in frameset</span>" and abort
these steps. (<span>fragment case</span>)</li>
- <li>If <var title="">node</var> is an <code>html</code> element,
- then switch the <span>insertion mode</span>
- to "<span title="insertion mode: before head">before
- head</span>" and abort these steps. (<span>fragment
- case</span>)</li>
+ <li>
+ <p>If <var title="">node</var> is an <code>html</code> element, run these substeps:</p>
+
+ <ol>
+
+ <li><p>If the <span><code>head</code> element pointer</span> is null, switch the
+ <span>insertion mode</span> to "<span title="insertion mode: before head">before head</span>"
+ and abort these steps. (<span>fragment case</span>)</li>
+
+ <li><p>Otherwise, the <span><code>head</code> element pointer</span> is not null, switch the
+ <span>insertion mode</span> to "<span title="insertion mode: after head">after head</span>"
+ and abort these steps.</li> <!-- consider <html><head></head><template></template> -->
+
+ </ol>
+
+ </li>
+
<li>If <var title="">last</var> is true, then switch the
<span>insertion mode</span> to "<span title="insertion mode: in
body">in body</span>" and abort these steps. (<span>fragment
More information about the Commit-Watchers
mailing list