[html5] r8293 - [e] (0) The 'reset the insertion mode' algorithm referenced the context element [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Nov 18 15:34:35 PST 2013


Author: ianh
Date: 2013-11-18 15:34:34 -0800 (Mon, 18 Nov 2013)
New Revision: 8293

Modified:
   complete.html
   index
   source
Log:
[e] (0) The 'reset the insertion mode' algorithm referenced the context element in some cases where there was no context element (e.g. '<html><head></head><template></template>')
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23664
Affected topics: HTML, HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2013-11-18 22:28:44 UTC (rev 8292)
+++ complete.html	2013-11-18 23:34:34 UTC (rev 8293)
@@ -85424,8 +85424,10 @@
    <li><p>Let <var title="">node</var> be the last node in the <a href=#stack-of-open-elements>stack of open
    elements</a>.</li>
 
+<!--CLEANUP-->
    <li><p><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.</li>
+   then set <var title="">last</var> to true, and, if the parser was originally created as part of
+   the <a href=#html-fragment-parsing-algorithm>HTML fragment parsing algorithm</a> (<a href=#fragment-case>fragment case</a>) 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>
 
@@ -102058,6 +102060,7 @@
   Weston Ruter,
   Wilhelm Joys Andersen,
   Will Levine,
+  William Chen,
   William Swanson,
   Wladimir Palant,
   Wojciech Mach,

Modified: index
===================================================================
--- index	2013-11-18 22:28:44 UTC (rev 8292)
+++ index	2013-11-18 23:34:34 UTC (rev 8293)
@@ -85424,8 +85424,10 @@
    <li><p>Let <var title="">node</var> be the last node in the <a href=#stack-of-open-elements>stack of open
    elements</a>.</li>
 
+<!--CLEANUP-->
    <li><p><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.</li>
+   then set <var title="">last</var> to true, and, if the parser was originally created as part of
+   the <a href=#html-fragment-parsing-algorithm>HTML fragment parsing algorithm</a> (<a href=#fragment-case>fragment case</a>) 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>
 
@@ -102058,6 +102060,7 @@
   Weston Ruter,
   Wilhelm Joys Andersen,
   Will Levine,
+  William Chen,
   William Swanson,
   Wladimir Palant,
   Wojciech Mach,

Modified: source
===================================================================
--- source	2013-11-18 22:28:44 UTC (rev 8292)
+++ source	2013-11-18 23:34:34 UTC (rev 8293)
@@ -95049,8 +95049,10 @@
    <li><p>Let <var data-x="">node</var> be the last node in the <span>stack of open
    elements</span>.</p></li>
 
+<!--CLEANUP-->
    <li><p><i>Loop</i>: If <var data-x="">node</var> is the first node in the stack of open elements,
-   then set <var data-x="">last</var> to true and set <var data-x="">node</var> to the <var
+   then set <var data-x="">last</var> to true, and, if the parser was originally created as part of
+   the <span>HTML fragment parsing algorithm</span> (<span>fragment case</span>) set <var data-x="">node</var> to the <var
    data-x="concept-frag-parse-context">context</var> element.</p></li>
 
    <li>
@@ -113967,6 +113969,7 @@
   Weston Ruter,
   Wilhelm Joys Andersen,
   Will Levine,
+  William Chen,
   William Swanson,
   Wladimir Palant,
   Wojciech Mach,




More information about the Commit-Watchers mailing list