summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/mfrac-E-1.html
blob: e9315645151350831101f33b77d627930ec7831b (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
26
27
28
29
30
31
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <title>mfrac childnode update</title>
    <script type="text/javascript">
      function doTest() {
        var x = document.getElementById("innerMfrac");
        var y = document.createElementNS("http://www.w3.org/1998/Math/MathML","mi");
        var z = document.createElementNS("http://www.w3.org/1998/Math/MathML","mi");
        y.innerHTML = "c";
        z.innerHTML = "d";
        x.appendChild(y);
        x.appendChild(z);
        document.documentElement.removeAttribute("class");
      }
      window.addEventListener("MozReftestInvalidate",doTest);
    </script>
  </head>
  <body>
    <math>
      <mfrac style="font-size: 300%">  
        <mfrac>
          <mi> a </mi>
          <mi> b </mi>
        </mfrac>
        <mfrac id="innerMfrac">
        </mfrac>
      </mfrac>
    </math>
  </body>
</html>