tor-browser

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

Element-childElement-null.html (505B)


      1 <!DOCTYPE HTML>
      2 <meta charset=utf-8>
      3 <title>Null test</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <h1>Test of firstElementChild and lastChildElement returning null</h1>
      7 <div id="log"></div>
      8 <p id="parentEl" style="font-weight:bold;">Test.</p>
      9 <script>
     10 test(function() {
     11  var parentEl = document.getElementById("parentEl")
     12  assert_equals(parentEl.firstElementChild, null)
     13  assert_equals(parentEl.lastElementChild, null)
     14 })
     15 </script>