W3C home > Mailing lists > Public > www-math@w3.org > April 2012

MathML mfenced tag issue with using angle brackets in MathPlayer and MathJax

From: saf sied <saf_itpro@yahoo.com>
Date: Sat, 21 Apr 2012 14:46:35 -0700 (PDT)
Message-ID: <1335044795.73310.YahooMailClassic@web111304.mail.gq1.yahoo.com>
To: www-math@w3.org
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.
 
But for MathPlayer, it works if right side is angle bracket and left side is any kind of bracket – <, [, (,  or a vertical bar. However, this case does not work for MathJax except when the left side is left angle bracket or the vertical bar.
 
To understand the issue please copy the following examples on your notepad and save them as IE.htm and MathJax.htm respectively:
 
Please help. Or, is there any workaround.
 
//////////Begin: Save as IE.htm///////////
 
<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>
<body>
<div>
 
<h4> MathPlayer test</h4>
<p>Right angle bracket with other types of left brackets or vertical bar on the left. All work:</p>
<p><m:math><m:mfenced open='[' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:mrow></m:math></p>
 
<p><m:math><m:mfenced open='(' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:mrow></m:math></p>
 
<p><m:math><m:mfenced open='{' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:mrow></m:math></p>
 
<p><m:math><m:mfenced open='|' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
<p>Left angle bracket with other types of right brackets or vertical bar on the right. Only right angle bracket and vertical bar on the right work:</p>
 
<p><m:math><m:mrow><m:mfenced open='&lt;' close=']'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mrow><m:mfenced open='&lt;' close=')'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mrow><m:mfenced open='&lt;' close='}'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mfenced open='&lt;' close='|'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mfenced open='&lt;' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
</div>
</body>
</html>
 
//////////End: Save as IE.htm///////////
 
//////////Begin: Save as MathJax.htm///////////
 
<html>  
<head>  
 <title>MathML using MathJax over CDN</title>
 <script type="text/javascript"
  src="https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
 </script>
</head>  
<body>  
  
<h4>MathML in MathJax</h4>
<p>Right angle bracket with other types of left brackets or vertical bar on the left. Only vertical bar on the left works:</p>
<p><math><mfenced open='[' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mrow></math></p>
<p><math><mfenced open='(' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mrow></math></p>
<p><math><mfenced open='{' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mrow></math></p>
<p><math><mfenced open='|' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p>Left angle bracket with other types of right brackets or vertical bar on the right. Only right angle bracket and vertical bar on the right work:</p>
<p><math><mrow><mfenced open='&lt;' close=']'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mrow><mfenced open='&lt;' close=')'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mrow><mfenced open='&lt;' close='}'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mfenced open='&lt;' close='|'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mfenced open='&lt;' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
 
</body>  
</html>
 
//////////End: Save as MathJax.htm///////////
Received on Saturday, 21 April 2012 21:47:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 21 April 2012 21:47:11 GMT