tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

dynamic-mi-mozilla-414123.xhtml (1447B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
      4 <head>
      5  <title>Testcase for Mozilla bug 414123</title>
      6  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=414123"/>
      7  <link rel="match" href="dynamic-mi-mozilla-414123-ref.xhtml"/>
      8 <script>
      9 function doTest() {
     10  var t = document.createTextNode('M')
     11  document.getElementById('mi1').appendChild(t);
     12 
     13  var mi = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mi");
     14  var mn = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mn");
     15  var msup = document.createElementNS("http://www.w3.org/1998/Math/MathML", "msup");
     16  mi.appendChild(document.createTextNode('M'));
     17  mn.appendChild(document.createTextNode('2'));
     18  msup.appendChild(mi);
     19  msup.appendChild(mn);
     20  document.getElementById('m').appendChild(msup);
     21  document.documentElement.removeAttribute("class");
     22 }
     23 document.documentElement.addEventListener("TestRendered", doTest);
     24 </script>
     25 </head>
     26 <body>
     27 
     28 <math xmlns="http://www.w3.org/1998/Math/MathML">
     29     <msup>
     30      <mi id="mi1"></mi>
     31      <mn>2</mn>
     32     </msup>
     33 </math>
     34 
     35 <math xmlns="http://www.w3.org/1998/Math/MathML">
     36     <msup>
     37      <mi>M</mi>
     38      <mn>2</mn>
     39     </msup>
     40 </math>
     41 
     42 <math id="m" xmlns="http://www.w3.org/1998/Math/MathML"></math>
     43 
     44 </body>
     45 </html>