Showing posts with label MathML. Show all posts
Showing posts with label MathML. Show all posts

Monday, December 14, 2015

When it comes to MathML, Firefox does a much better job than Microsoft Edge

This is just the view point looking at just one example and must not be construed to apply to whole of MathML. You may review some basic MathML information here.

Here is an example of displaying a matrix using the presentation elements of MathML. Browsers do not support MathML the same way, some do better than others. Generally speaking browsers that support HTML5 should support MathML to some extent. This post considers only the latest versions of Firefox and Microsoft Edge at present.

This page can be hosted on a web server(in this case on the local ISS, IIS Version 10.0.10586) on Windows 10 Pro)

<!DOCTYPE html>
<html>
<head><!--<script src="http://fred-wang.github.io/mathml.css/mspace.js"></script>-->
<title>Page Title</title>
</head>
<body>

<h1>Matrix Display with MathML </h1>
<p>Matrix A</p>
 <math>
      <mrow>
  <mi>A</mi>
  <mo>=</mo>
  <mfenced open='['; close=']'>
    <mtable>
      <mtr>
         <mtd><mi>x</mi></mtd>
         <mtd><mi>y</mi></mtd>
      </mtr>
      <mtr>
         <mtd><mi>z</mi></mtd>
         <mtd><mi>w</mi></mtd>
      </mtr>
    </mtable>
  </mfenced>
</mrow>
    </math>

</body>
</html>

This is a very simple page but there are differences how the browsers display them. The MathML is highlighted in yellow in the HTML page.

Firefox 42
Firefox displays as shown here without any modification. This is the correct way of displaying a matrix.




Microsoft Edge 25

The HTML code used as is (with the <script/> item commented out) will display as shown.

 

This one with <script/> included:

Friday, August 16, 2013

HTML5 and browser support

Looks like Google Chrome acquits itself admirably!

This site (link) tests browsers for the support they provide for
HTML5. The following quoted from the site describes the
criteria for testing.

"The score is calculated by testing for the many new features
of HTML5. Each feature is worth one or more points. Apart from
the main HTML5 specification and other specifications created
the W3C HTML Working Group, ...etc.

The test also awards bonus points for supporting audio and
video codecs and supporting SVG or MathML embedding in a plain
HTML document. These test do not count towards the total score
because HTML5 does not specify ...etc."

Please access the site for further details here:
http://html5example.net/static/html5test/

These are some of the browsers I use and I am not sure they are
the latest.



Looks like Google Chrome acquits itself admirably while Safari is trailing. Firefox is catching up fast.

Little over a year ago, things were different and IE (8) was trailing Chrome by a large margin,
http://webatall.org/which-browsers-support-html5-20-34-1
DMCA.com Protection Status