Re: just not seeing something about the spec....

"Chris Chiasson" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.mathml
Message-ID <[email protected]>
If you load a file with the .html extension from the hard disk,
firefox goes down the html rendering path instead of the xhtml
rendering path. This is similar to a server sending a file with the
text/html mime type instead of the application/xhtml+mathml mime type.
To fix this, change the extension of the file to .xhtml.

Also, you don't need all that doctype stuff when using the xml
namespaces specification.



On 8/18/07, Ray Kiddy <[email protected]> wrote:
> [email protected] wrote:
> > Ray Kiddy <[email protected]> wrote on Fri, 17 Aug 2007 20:56:35 -0700:
> >
> >> <math xmlns="http://www.w3.org/1998/Math/MathML">
> >>    <mi>x</mi>
> >>    <msup>
> >>      <mn>2</mn>
> >>    </msup>
> >> </math>
> >
> > I have no idea why this even validates. The spec clearly says
> > (http://www.w3.org/TR/2003/REC-MathML2-20031021/chapter3.html#presm.scrlim,
> > Section 3.4.2.1): "The syntax for the msup element is: <msup> base
> > superscript </msup>". So the correct syntax is:
> >
> > <math xmlns="http://www.w3.org/1998/Math/MathML">
> >    <msup>
> >      <mi>x</mi>
> >      <mn>2</mn>
> >    </msup>
> > </math>
> >
> > which is displayed correctly by Firefox.
> >
> > I use Firefox for MathML rather extensively, and it works very well.
> >
> > Justus
>
> I believe you, but I am seeing what I am seeing. Perhaps one problem is
> that everyone shows MathML in fragments. I am sure there is a way to
> screw up the markup in the page info and perhaps that is what I am
> doing. I have taken this file and taken various things out of it. I see
> "x 2" with no superscript. One is supposed to be able to do this, yes?
>
> thanx - ray
>
> % cat page01a.html
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
> "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
>    <title>x squared</title>
> </head>
> <body>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>     <msup>
>       <mi>x</mi>
>       <mn>2</mn>
>     </msup>
> </math>
> </body></html>
> %
> _______________________________________________
> dev-tech-mathml mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-mathml
>


-- 
http://chris.chiasson.name/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.