tor-browser

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

test_bug1276240.html (1064B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
      5 -->
      6 <head>
      7  <title>Test for Bug 1276240</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10 </head>
     11 <body>
     12 <a target="_blank"
     13 href="https://bugzilla.mozilla.org/show_bug.cgi?id=1276240">Mozilla Bug 1276240</a>
     14 <p id="display"></p>
     15 <div id="content" style="display: none">
     16 
     17 </div>
     18 <pre id="test">
     19 <script class="testbody" type="text/javascript">
     20 
     21 /** Test for Bug 1276240 */
     22 // when passing null for the second argument, it would be ignored
     23 
     24 function test() {
     25  var e = document.createElement("p", null);
     26  is(e.getAttribute("is"), null);
     27 
     28  e = document.createElement("p", undefined);
     29  is(e.getAttribute("is"), null);
     30 
     31  e = document.createElementNS("http://www.w3.org/1999/xhtml", "p", null);
     32  is(e.getAttribute("is"), null);
     33 
     34  e = document.createElementNS("http://www.w3.org/1999/xhtml", "p", undefined);
     35  is(e.getAttribute("is"), null);
     36 }
     37 
     38 test();
     39 
     40 </script>
     41 </pre>
     42 </body>
     43 </html>