|
1 <html xmlns="http://www.w3.org/1999/xhtml" |
|
2 xmlns:mathml="http://www.w3.org/1998/Math/MathML"> |
|
3 <body onload="run()"> |
|
4 <mathml:math id="test" style="display: block"> |
|
5 </mathml:math> |
|
6 <script> |
|
7 function run() { |
|
8 var t1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", |
|
9 "mtable"); |
|
10 var t2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", |
|
11 "mtable"); |
|
12 var r1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", |
|
13 "mtr"); |
|
14 var r2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", |
|
15 "mtr"); |
|
16 var test = |
|
17 document.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", "math")[0]; |
|
18 t1.appendChild(r1); |
|
19 test.appendChild(t1); |
|
20 test.appendChild(t2); |
|
21 t2.appendChild(r2); |
|
22 |
|
23 } |
|
24 </script> |
|
25 </body> |
|
26 </html> |