tor-browser

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

HTMLBaseElement.html (935B)


      1 <!DOCTYPE html>
      2 <head>
      3 <title>Custom Elements: CEReactions on HTMLBaseElement interface</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <meta name="assert" content="href, target of HTMLBaseElement interface must have CEReactions">
      6 <meta name="help" content="https://html.spec.whatwg.org/#the-base-element">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="../../resources/custom-elements-helpers.js"></script>
     10 <script src="../resources/reactions.js"></script>
     11 </head>
     12 <script>
     13 
     14 function getParentElement() {
     15  return document.head;
     16 }
     17 
     18 testReflectAttributeWithParentNode('href', 'href', '/', 'http://example.com/', 'href on HTMLBaseElement', 'base', getParentElement, HTMLBaseElement);
     19 testReflectAttributeWithParentNode('target', 'target', '_blank', '_self', 'target on HTMLBaseElement', 'base', getParentElement, HTMLBaseElement);
     20 
     21 </script>