hixie: 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. (whatwg r5300)

hixie: 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. (whatwg r5300)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4222&r2=1.4223&f=h
http://html5.org/tools/web-apps-tracker?from=5299&to=5300

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4222
retrieving revision 1.4223
diff -u -d -r1.4222 -r1.4223
--- Overview.html 16 Aug 2010 20:46:44 -0000 1.4222
+++ Overview.html 16 Aug 2010 21:01:51 -0000 1.4223
@@ -59343,10 +59343,26 @@
     <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>

Received on Monday, 16 August 2010 21:02:37 UTC