|
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> |
|
2 <head> |
|
3 <script> |
|
4 |
|
5 function boom() |
|
6 { |
|
7 var mtd1 = document.getElementById("mtd1"); |
|
8 var mtd2 = document.getElementById("mtd2"); |
|
9 var newSpan = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); |
|
10 |
|
11 mtd1.appendChild(newSpan); |
|
12 mtd1.removeAttribute("columnspan"); |
|
13 mtd2.setAttribute("columnspan", 0); |
|
14 } |
|
15 |
|
16 </script> |
|
17 </head> |
|
18 |
|
19 <body onload="boom();"> |
|
20 <math:mtd id="mtd1" columnspan="5" /><math:mtd id="mtd2" /> |
|
21 </body> |
|
22 </html> |