Skip to content
Permalink
Browse files

[cgiowt] (3) PARSER: when inlining the fake tags, I missed that <sele…

…ct>.innerHTML = '<select>' would crash if we did not check for a <select> in scope first

Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8667 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jun 10, 2014
1 parent b603fe8 commit 56a9a3f2e77092f6cf953b09b117217232e9d852
Showing with 14 additions and 2 deletions.
  1. +5 −1 complete.html
  2. +5 −1 index
  3. +4 −0 source
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 9 June 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 10 June 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
<p><a href=#parse-error>Parse error</a>.</p>

<!-- fake </select> -->
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-select-scope title="has an element in select
scope">have a <code>select</code> element in select scope</a>, ignore the token.
(<a href=#fragment-case>fragment case</a>)</p>

<p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a> until a <code><a href=#the-select-element>select</a></code> element
has been popped from the stack.</p>

6 index
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 9 June 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 10 June 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
<p><a href=#parse-error>Parse error</a>.</p>

<!-- fake </select> -->
<p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-select-scope title="has an element in select
scope">have a <code>select</code> element in select scope</a>, ignore the token.
(<a href=#fragment-case>fragment case</a>)</p>

<p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a> until a <code><a href=#the-select-element>select</a></code> element
has been popped from the stack.</p>

4 source
<p><span>Parse error</span>.</p>

<!-- fake </select> -->
<p>If the <span>stack of open elements</span> does not <span data-x="has an element in select
scope">have a <code>select</code> element in select scope</span>, ignore the token.
(<span>fragment case</span>)</p>

<p>Pop elements from the <span>stack of open elements</span> until a <code>select</code> element
has been popped from the stack.</p>

0 comments on commit 56a9a3f

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