[html5] r5300 - [giowt] (2) Change how to handle unexpected HTML elements in foreign content to [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Aug 16 14:01:48 PDT 2010
Author: ianh
Date: 2010-08-16 14:01:47 -0700 (Mon, 16 Aug 2010)
New Revision: 5300
Modified:
complete.html
index
source
Log:
[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
Modified: complete.html
===================================================================
--- complete.html 2010-08-16 20:46:24 UTC (rev 5299)
+++ complete.html 2010-08-16 21:01:47 UTC (rev 5300)
@@ -84888,11 +84888,27 @@
<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>
<dt>Any other start tag</dt>
Modified: index
===================================================================
--- index 2010-08-16 20:46:24 UTC (rev 5299)
+++ index 2010-08-16 21:01:47 UTC (rev 5300)
@@ -77990,11 +77990,27 @@
<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>
<dt>Any other start tag</dt>
Modified: source
===================================================================
--- source 2010-08-16 20:46:24 UTC (rev 5299)
+++ source 2010-08-16 21:01:47 UTC (rev 5300)
@@ -96815,11 +96815,31 @@
<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>
<dt>Any other start tag</dt>
More information about the Commit-Watchers
mailing list