<div class="gmail_quote">On Tue, Nov 2, 2010 at 10:17 AM, Adam Barth <span dir="ltr">&lt;<a href="mailto:abarth@webkit.org">abarth@webkit.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Nov 2, 2010 at 9:52 AM, David Carlisle &lt;<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>&gt; wrote:<br>
&gt; On 2 November 2010 16:26, Adam Barth &lt;<a href="mailto:abarth@webkit.org">abarth@webkit.org</a>&gt; wrote:<br>
&gt;&gt; On Tue, Nov 2, 2010 at 7:55 AM, David Carlisle &lt;<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; Alex Milowski &lt;alex &lt;at&gt; <a href="http://milowski.org" target="_blank">milowski.org</a>&gt; writes:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; sorry for late reply, I&#39;m not subscribed, just saw this in the archives.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Fri, Oct 1, 2010 at 12:52 PM, Adam Barth &lt;abarth &lt;at&gt; <a href="http://webkit.org" target="_blank">webkit.org</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt; Our parser follows the spec (modulo late-breaking spec changes that we<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Actually most mathml in the wild will be mis-parsed by the webkit html5 parser<br>
&gt;&gt;&gt; because of<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="https://bugs.webkit.org/show_bug.cgi?id=48105" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=48105</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; but that&#39;s hopefully a temporary glitch.<br>
&gt;&gt;<br>
&gt;&gt; Is this a bug in the HTML5 specification or a bug in our<br>
&gt;&gt; implementation of the spec?  If its the former, you might want to file<br>
&gt;&gt; a bug with the HTML working group to resolve the issue.<br>
&gt;&gt;<br>
&gt;&gt; Adam<br>
&gt;<br>
</div>&gt; I&#39;m pretty sure that it is an implementation issue (firefox 4 doesn&#39;t<br>
&gt; have this problem for example). Certainly I can&#39;t see anything that<br>
&gt; would specify parsing something as simple as<br>
&gt;<br>
&gt;<br>
&gt; &lt;math&gt;<br>
&gt; &lt;mrow&gt;<br>
&gt; &lt;mrow&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;<br>
&gt; &lt;mi&gt;a&lt;/mi&gt;<br>
&gt; &lt;/mrow&gt;<br>
&gt; &lt;/math&gt;<br>
&gt;<br>
&gt; as a completely different tree:<br>
&gt;<br>
&gt; &lt;math&gt; &lt;mrow&gt; &lt;mrow&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;/mrow&gt; &lt;mi&gt;a&lt;/mi&gt; &lt;/math&gt;<br>
&gt;<br>
&gt; It makes mathml and svg pretty unusable of course as it&#39;s common (very<br>
&gt; common in mathml case) to have elements nested within an element of<br>
&gt; the same name.<br>
<br>
Okiedokes.  I&#39;ve CCed Eric and myself on the bug since we&#39;re the<br>
mostly likely folks to fix the issue.  We&#39;d certainly welcome a patch<br>
from you, if you&#39;re interested in fixing the issue.</blockquote><div><br></div><div>This is my bug from the new handling of foreign content mode. I&#39;ll upload a patch shortly.</div><div><br></div><div>James </div>
</div>