Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <html><head>
2 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Comparison of script elements</title></head>
3 <body>
4 msubsup:
5 <math>
6 <msubsup style="background: red;">
7 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
8 <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
9 <mtext style="background-color: rgba(0, 255, 0, 0.4);">ccc</mtext>
10 </msubsup>
11 </math>
13 <br><br>
15 <!-- Different rules apply to msub, so it won't provide equivalent output -->
16 msubsup:
17 <math>
18 <msubsup style="background: red;">
19 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
20 <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
21 <mrow></mrow>
22 </msubsup>
23 </math>
25 <br><br>
27 msup / msubsup:
28 <math>
29 <msup style="background: red;">
30 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
31 <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
32 </msup>
33 </math>
35 <math>
36 <msubsup style="background: red;">
37 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
38 <mrow></mrow>
39 <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
40 </msubsup>
41 </math>
43 <br><br>
45 mrow / msub:
46 <math>
47 <mrow style="background: red;">
48 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
49 </mrow>
50 </math>
52 <math>
53 <msub style="background: red;">
54 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
55 <mrow></mrow>
56 </msub>
57 </math>
59 <br><br>
61 msupsub:
62 <math>
63 <msubsup style="background: red;">
64 <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
65 <mrow></mrow>
66 <mrow></mrow>
67 </msubsup>
68 </math>
70 </body></html>