| <!doctype html> |
| <html> |
| <head> |
| <title>table rowspan colspan dynamic</title> |
| <meta charset="utf-8"/> |
| </head> |
| <body> |
| |
| <!-- This sets the rowspan and columnspan attributes on an mtable cell |
| via Javascript. It should render the same if the attributes are |
| directly specified in the source code. --> |
| <math> |
| <mtable> |
| <mtr> |
| <mtd id="mtd22"><msub><mi>a</mi><mn>1</mn></msub></mtd> |
| <mtd><msub><mi>a</mi><mn>13</mn></msub></mtd> |
| </mtr> |
| <mtr> |
| <mtd><msub><mi>b</mi><mn>23</mn></msub></mtd> |
| </mtr> |
| <mtr> |
| <mtd><msub><mi>c</mi><mn>31</mn></msub></mtd> |
| <mtd><msub><mi>c</mi><mn>32</mn></msub></mtd> |
| <mtd><msub><mi>c</mi><mn>3</mn></msub></mtd> |
| </mtr> |
| </mtable> |
| </math> |
| |
| <script> |
| window.addEventListener("load", function() { |
| document.body.offsetTop; |
| |
| var mtd22 = document.getElementById("mtd22"); |
| mtd22.setAttribute("rowspan", 2); |
| mtd22.setAttribute("columnspan", 2); |
| }, false); |
| </script> |
| |
| </body> |
| </html> |