W3C home > Mailing lists > Public > www-math@w3.org > January 2010

MathML in HTML5 pages with Firefox and Firebug add-on

From: Joe Java <joe.java@eyeasme.com>
Date: Thu, 21 Jan 2010 14:14:07 -0700
Message-Id: <20100121141407.eeb015f6c9d0e1fdff594d2c3206cf5d.36c3b67207.wbe@email04.secureserver.net>
To: www-math@w3.org
Now that Firefox 3.6 is out it is easy to experiment with 
MathML in HTML5 pages.

Just change the setting of the 
"html5.enable" entry to "true" in "about:config".
This link will help you understand what to do
http://kb.mozillazine.org/About:config

The following is a valid HTML5 document with MathML

<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Pythagorean theorem </title>
  </head>
  <body>
    <math>
      <mrow>
        <msup><mi>a</mi><mn>2</mn></msup>
	<mo>+</mo>
        <msup><mi>b</mi><mn>2</mn></msup>
	<mo>=</mo>
        <msup><mi>c</mi><mn>2</mn></msup>
      </mrow>
    </math>
  </body>
</html>

Note HTML5 validators do NOT work with "math" tags at this time.

For a bigger MathML in HTML5 example try
https://eyeasme.com/Joe/MathML/HTML5_MathML_browser_test.html

The recently released Firefox add-on "Firebug" version 1.5.0 
is GREAT for doing MathML development, get it at
https://addons.mozilla.org/en-US/firefox/addon/1843
Received on Thursday, 21 January 2010 21:14:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:13:06 GMT