Skip to content
Permalink
Browse files
[giowt] (2) Change how to handle unexpected HTML elements in foreign …
…content to be a previously-solved problem, rather than rolling our own escapte hatch with all the problems that entails.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8966

git-svn-id: http://svn.whatwg.org/webapps@5300 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 16, 2010
1 parent 2953ae8 commit 26d7eeb637dcf1c70ef3dd665b7a8b461aa7daa4
Showing with 64 additions and 12 deletions.
  1. +20 −4 complete.html
  2. +20 −4 index
  3. +24 −4 source
@@ -84888,10 +84888,26 @@ <h5 id=parsing-main-inselect><span class=secno>12.2.5.19 </span>The "<dfn title=
<p><a href=#parse-error>Parse error</a>.</p>

<p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a> until
either a <code><a href=#math>math</a></code> element or an <code><a href=#svg>svg</a></code> element
has been popped from the stack, switch the <a href=#insertion-mode>insertion
mode</a> to the <a href=#secondary-insertion-mode>secondary insertion mode</a>, and
reprocess the token.</p>
the <a href=#current-node>current node</a> is one of the following:</p>

<ul class=brief><li>an <code title="">mi</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">mo</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">mn</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">ms</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">mtext</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>a <code title="">foreignObject</code> element in the <a href=#svg-namespace>SVG namespace</a></li>
<li>a <code title="">desc</code> element in the <a href=#svg-namespace>SVG namespace</a></li>
<li>a <code title="">title</code> element in the <a href=#svg-namespace>SVG namespace</a></li>
<li>an element in the <a href=#html-namespace-0>HTML namespace</a></li>

</ul><p>If, after doing so, the <a href=#insertion-mode>insertion mode</a> is still
"<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
content</a>", but there is no element <a href=#has-an-element-in-scope title="has an
element in scope">in scope</a> that has a namespace other than
the <a href=#html-namespace-0>HTML namespace</a>, switch the <a href=#insertion-mode>insertion
mode</a> to the <a href=#secondary-insertion-mode>secondary insertion mode</a>.</p>

<p>Reprocess the token.</p>

</dd>

24 index
@@ -77990,10 +77990,26 @@ document.body.appendChild(text);
<p><a href=#parse-error>Parse error</a>.</p>

<p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a> until
either a <code><a href=#math>math</a></code> element or an <code><a href=#svg>svg</a></code> element
has been popped from the stack, switch the <a href=#insertion-mode>insertion
mode</a> to the <a href=#secondary-insertion-mode>secondary insertion mode</a>, and
reprocess the token.</p>
the <a href=#current-node>current node</a> is one of the following:</p>

<ul class=brief><li>an <code title="">mi</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">mo</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">mn</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">ms</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>an <code title="">mtext</code> element in the <a href=#mathml-namespace>MathML namespace</a></li>
<li>a <code title="">foreignObject</code> element in the <a href=#svg-namespace>SVG namespace</a></li>
<li>a <code title="">desc</code> element in the <a href=#svg-namespace>SVG namespace</a></li>
<li>a <code title="">title</code> element in the <a href=#svg-namespace>SVG namespace</a></li>
<li>an element in the <a href=#html-namespace-0>HTML namespace</a></li>

</ul><p>If, after doing so, the <a href=#insertion-mode>insertion mode</a> is still
"<a href=#parsing-main-inforeign title="insertion mode: in foreign content">in foreign
content</a>", but there is no element <a href=#has-an-element-in-scope title="has an
element in scope">in scope</a> that has a namespace other than
the <a href=#html-namespace-0>HTML namespace</a>, switch the <a href=#insertion-mode>insertion
mode</a> to the <a href=#secondary-insertion-mode>secondary insertion mode</a>.</p>

<p>Reprocess the token.</p>

</dd>

28 source
@@ -96815,10 +96815,30 @@ document.body.appendChild(text);
<p><span>Parse error</span>.</p>

<p>Pop elements from the <span>stack of open elements</span> until
either a <code>math</code> element or an <code>svg</code> element
has been popped from the stack, switch the <span>insertion
mode</span> to the <span>secondary insertion mode</span>, and
reprocess the token.</p>
the <span>current node</span> is one of the following:</p>

<ul class="brief">

<li>an <code title="">mi</code> element in the <span>MathML namespace</span></li>
<li>an <code title="">mo</code> element in the <span>MathML namespace</span></li>
<li>an <code title="">mn</code> element in the <span>MathML namespace</span></li>
<li>an <code title="">ms</code> element in the <span>MathML namespace</span></li>
<li>an <code title="">mtext</code> element in the <span>MathML namespace</span></li>
<li>a <code title="">foreignObject</code> element in the <span>SVG namespace</span></li>
<li>a <code title="">desc</code> element in the <span>SVG namespace</span></li>
<li>a <code title="">title</code> element in the <span>SVG namespace</span></li>
<li>an element in the <span>HTML namespace</span></li>

</ul>

<p>If, after doing so, the <span>insertion mode</span> is still
"<span title="insertion mode: in foreign content">in foreign
content</span>", but there is no element <span title="has an
element in scope">in scope</span> that has a namespace other than
the <span>HTML namespace</span>, switch the <span>insertion
mode</span> to the <span>secondary insertion mode</span>.</p>

<p>Reprocess the token.</p>

</dd>

0 comments on commit 26d7eeb

Please sign in to comment.