- From: saf sied <saf_itpro@yahoo.com>
- Date: Sat, 2 Jun 2012 13:54:47 -0700 (PDT)
- To: www-math@w3.org
- Cc: www-math@w3.org
Am I missing something? According to MathML specifications of mmultiscripts: “If no subscript or superscript should be rendered in a given position, then the empty element none should be used in that position”.
To test, please copy each of the following and open in a corresponding browser. Thank you, Saf:
Example 1: IE8+Mathplayer2.2b: Does not work at all
-----------------------------------------
<html xmlns:m="http://www.w3.org/1998/Math/MathML">
<head><object ID=MathPlayer CLASSID="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"></object><?IMPORT NAMESPACE="m" IMPLEMENTATION="#MathPlayer" ?></head>
</head>
<body>
<m:math><m:mmultiscripts><m:mi>F</m:mi><none/><m:mn>2</m:mn><m:mprescripts/><m:mn>3</m:mn><none/></m:mmultiscripts></m:math>
</body>
</html>
////////////End Example 1/////////////
Example 2: XHTML+MathPlayer: Improperly displays the prescript 3 in Firefox11+Mathplayer but displays good in IE8+Mathplayer. **PLEASE** save as ".xhtml"
------------------------------------------------------------------------
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:m="http://www.w3.org/1998/Math/MathML" >
<head><title>Test</title></head>
<body>
<m:math><m:mmultiscripts><m:mi>F</m:mi><none/><m:mn>2</m:mn><m:mprescripts/><m:mn>3</m:mn><none/></m:mmultiscripts></m:math>
</body>
</html>
////////////End Example 2/////////////
Example 3: Firefox11: Works good
--------------------------------
<!DOCTYPE html>
<html>
<body>
<math><mmultiscripts><mi>F</mi><none/><mn>3</mn><mprescripts/><mn>5</mn><none/></mmultiscripts></math>
</body>
</html>
////////////End Example 3/////////////
Example 4: MathJax: Works good in both IE and Firefox.
-------------------------------
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"
src="https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
<math><mmultiscripts><mi>F</mi><none/><mn>3</mn><mprescripts/><mn>5</mn><none/></mmultiscripts></math>
</body>
</html>
Thank you,
Saf
--- On Tue, 4/24/12, William F Hammond <hammond@csc.albany.edu> wrote:
> From: William F Hammond <hammond@csc.albany.edu>
> Subject: Re: MathML mfenced tag issue with using angle brackets in MathPlayer and MathJax
> To: "saf sied" <saf_itpro@yahoo.com>
> Cc: www-math@w3.org
> Date: Tuesday, April 24, 2012, 1:06 PM
> saf sied <saf_itpro@yahoo.com>
> writes:
>
> > mfenced tag does not work when using angle bracket from
> the left and
> > using any of the following brackets from the right: ],
> ) or
> > }. However, it works if right side is a vertical bar.
>
> Re IE.htm
>
> As Davide pointed out, there are failures of
> well-formedness. I see
> both improperly formed closetags and redundant instances of
> </m:mrow>.
> While you have set up "m:" as prefix for the MathML
> namespace,
> which forces the page to be understood as XML, you have not
> flagged
> the html namespace. Without that the HTML markup may
> not be
> recognized and is not be recognized in my copy of Firefox.
>
> I have re-worked the example in three different ways at
> http://www.albany.edu/dept/math-stat/hammond/mathml-misc/
>
> wwwmIE.xhtml -- basically yours with fixes
> wwwmIE.html -- html5 with mathml (namespaces and
> prefixes gone)
> wwwmMJ.html -- the same html5 with mathml wired for
> MathJax
>
> All three work in Firefox 11. The mathjax version
> should work in all
> browsers. The xhtml version will work in IE-8 if
> MathPlayer is
> installed and has dominion over the xhtml mimetype.
> Only the mathjax
> version will work in Google Chrome (sadly the webkit support
> for mathml
> has not been enable in Google Chrome -- no wonder Johnny
> can't do math).
>
>
>
> -- Bill
>
>
Received on Saturday, 2 June 2012 20:55:17 UTC