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