tor-browser

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

unique-identifier-2.html (944B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Unique Identifier</title>
      6 <link rel="help" href="https://w3c.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements">
      7 <link rel="help" href="https://w3c.github.io/mathml-core/#dom-and-javascript">
      8 <meta name="assert" content="Verify whether the getElementById() works for MathML elements.">
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script>
     12  setup({ explicit_done: true });
     13  window.addEventListener("DOMContentLoaded", function() {
     14    var mtext = document.getElementById("MTEXT");
     15    test(function() {
     16      assert_equals(mtext, document.body.lastElementChild.lastElementChild);
     17    }, "getElementById()");
     18    done();
     19  });
     20 </script>
     21 </head>
     22 <body>
     23  <div id="log"></div>
     24  <math>
     25    <mtext id="MTEXT_"></mtext>
     26    <mtext id="MTEX"></mtext>
     27    <mtext id="MTEXT"></mtext>
     28  </math>
     29 </body>
     30 </html>