- From: Paul Topping <pault@dessci.com>
- Date: Tue, 3 Oct 2006 16:08:02 -0700
- To: "David Carlisle" <davidc@nag.co.uk>, <ian@hixie.ch>
- Cc: <www-math@w3.org>, <dev-tech-mathml@lists.mozilla.org>
Just to confirm, David is correct, MathPlayer treatment of bad input (ie, malformed MathML) by putting it in a red box is its own invention. IE plays no role. MathPlayer is just given a DOM tree rooted at the <math> node and it can do as it pleases. (Actually, MathPlayer has access to the entire DOM and more if it wants it.) One consequence of this is that (a) MathPlayer doesn't have to implement an XML parser and (b) it can't correct any limitations or errors in its parsing. Paul > -----Original Message----- > From: dev-tech-mathml-bounces@lists.mozilla.org > [mailto:dev-tech-mathml-bounces@lists.mozilla.org] On Behalf > Of David Carlisle > Sent: Tuesday, October 03, 2006 3:33 PM > To: ian@hixie.ch > Cc: www-math@w3.org; dev-tech-mathml@lists.mozilla.org > Subject: Re: MathML-in-HTML5 > > > Ian, > > What are the rules for handling non-well-formed content? > not sure what the "rules" are (as in whether they are published > anywhere), perhaps someone from DS (or Microsoft for that > matter) could > give more information, but empirically what I think happens is that > if you register the namespce on m: with a component then any top level > element (<m:math>..</m:math> in our case) gets handed over to the > component, well formed or not, and then it's up to the > component what it > does with it. Mathplayer for example usually tries to make something > out of incorrect (including non well formed) content, but always > renders it in a red error box. > > > (Could you show me an example of this? > yes. > > Taking the example whose markup is shown and described here > > http://www.dessci.com/en/products/mathplayer/author/creatingpa > ges.htm#AnatomyMathPlayerWebPage > > I've cut out the example and made it into a file served here: > http://www.dcarlisle.demon.co.uk/mml1.html > > Here's the same file made gratuitously non-well formed (all end tags > made into start tags) > > http://www.dcarlisle.demon.co.uk/mml2.html > > It renders in red, and if you use the right menu to "copy mathml" > and paste the copied markup into a text editor you will see > > <math> > <!-- Error encountered and repaired: > Too few children in <msup> node > --> > <msup> > <!-- Error encountered and repaired: > Too many children in <mi> node > --> > <mi>x 2 + 9 x + 9 = 0</mi> > <mrow> > </mrow> > </msup> > </math> > > > So basically in the case of mathplayer any non well formed text is > displayed as an error, although I suspect that isn't enforced > by the API > exposed by IE for XML fragments. > > I should stress I'm just a user here I have no inside knowledge about > any of the components being discussed. > > David > _______________________________________________ > dev-tech-mathml mailing list > dev-tech-mathml@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-tech-mathml >
Received on Tuesday, 3 October 2006 23:08:18 UTC