tor-browser

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

test_getAttribute_after_createAttribute.html (507B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>Test for ...</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="log"></div>
      7 <script>
      8 test(function() {
      9   var div = document.createElement("div");
     10   var attr = document.createAttribute("FOO");
     11   attr.value = "bar";
     12   div.setAttributeNode(attr);
     13   assert_equals(div.getAttribute("FOO"), "bar");
     14 }, "getAttribute should be able to get an attribute created via createAttribute");
     15 </script>