Skip to content

Commit

Permalink
[e] (0) The 'reset the insertion mode' algorithm referenced the conte…
Browse files Browse the repository at this point in the history
…xt 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

git-svn-id: http://svn.whatwg.org/webapps@8293 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 18, 2013
1 parent 84588f7 commit 594f473
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion complete.html
Expand Up @@ -85424,8 +85424,10 @@ <h5 id=the-insertion-mode><span class=secno>12.2.3.1 </span>The insertion mode</
<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>

Expand Down Expand Up @@ -102058,6 +102060,7 @@ <h2 class=no-num id=references>References</h2><!--REFS-->
Weston Ruter,
Wilhelm Joys Andersen,
Will Levine,
William Chen,
William Swanson,
Wladimir Palant,
Wojciech Mach,
Expand Down
5 changes: 4 additions & 1 deletion index
Expand Up @@ -85424,8 +85424,10 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>
<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>

Expand Down Expand Up @@ -102058,6 +102060,7 @@ if (s = prompt('What is your name?')) {
Weston Ruter,
Wilhelm Joys Andersen,
Will Levine,
William Chen,
William Swanson,
Wladimir Palant,
Wojciech Mach,
Expand Down
5 changes: 4 additions & 1 deletion source
Expand Up @@ -95049,8 +95049,10 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<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>
Expand Down Expand Up @@ -113967,6 +113969,7 @@ if (s = prompt('What is your name?')) {
Weston Ruter,
Wilhelm Joys Andersen,
Will Levine,
William Chen,
William Swanson,
Wladimir Palant,
Wojciech Mach,
Expand Down

0 comments on commit 594f473

Please sign in to comment.