tor-browser

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

Element-removeAttributeNS.html (638B)


      1 <!DOCTYPE html>
      2 <title>Element.removeAttributeNS</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="attributes.js"></script>
      6 <div id="log"></div>
      7 <script>
      8 var XML = "http://www.w3.org/XML/1998/namespace"
      9 
     10 test(function() {
     11  var el = document.createElement("foo")
     12  el.setAttributeNS(XML, "a:bb", "pass")
     13  attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb")
     14  el.removeAttributeNS(XML, "a:bb")
     15  assert_equals(el.attributes.length, 1)
     16  attr_is(el.attributes[0], "pass", "bb", XML, "a", "a:bb")
     17 }, "removeAttributeNS should take a local name.")
     18 </script>