MathML Blogs: MathML works in blogger blog finally for both IE and Firefox

Friday, November 14, 2008

MathML works in blogger blog finally for both IE and Firefox

I took a good look at the source code of David Carlisle's blogger blog again. It contained a pair of functions that would convert the MathML code and just fix it up a bit like adding namespace to make it work with Firefox or to add the 'm' prefix to the mathml tags to make it work with Internet Explorer+Mathplayer.

As explained in previous posts, with the right code in the header and the valid mathml code with 'm' prefix, it works just fine without the use of any scripting functions. But, even with the correct the right code, it won't work with Firefox. So the key is to generate the new MathML code specifically for Firefox using the XML document object interface functions calls. For some reason, Firefox sees the newly generated MathML code as XML code and starts rendering it as it should natively.

I have modified one of the helper function to remove the included stylesheet. For some reason it was causing an error in saving the template. Probably some syntax error somewhere.

No comments:

Post a Comment