tor-browser

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

HTMLElement.html (1978B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>Custom Elements: CEReactions on HTMLElement interface</title>
      5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
      6 <meta name="assert" content="title, lang, translate, dir, hidden, tabIndex, accessKey, draggable, dropzone, contextMenu, spellcheck, popover, innerText, and outerText of HTMLElement interface must have CEReactions">
      7 <meta name="help" content="https://html.spec.whatwg.org/#htmlelement">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="../resources/custom-elements-helpers.js"></script>
     11 <script src="./resources/reactions.js"></script>
     12 </head>
     13 <body>
     14 <div id="log"></div>
     15 <script>
     16 
     17 testReflectAttribute('title', 'title', 'foo', 'bar', 'title on HTMLElement');
     18 testReflectAttribute('lang', 'lang', 'en', 'zh', 'lang on HTMLElement');
     19 testReflectAttributeWithContentValues('translate', 'translate', true, 'yes', false, 'no', 'translate on HTMLElement');
     20 testReflectAttribute('dir', 'dir', 'ltr', 'rtl', 'dir on HTMLElement');
     21 testReflectBooleanAttribute('hidden', 'hidden', 'hidden on HTMLElement');
     22 testReflectAttribute('tabIndex', 'tabindex', '0', '1', 'tabIndex on HTMLElement');
     23 testReflectAttribute('accessKey', 'accesskey', 'a', 'b', 'accessKey on HTMLElement');
     24 testReflectAttributeWithContentValues('draggable', 'draggable', true, 'true', false, 'false', 'draggable on HTMLElement');
     25 testReflectAttributeWithContentValues('spellcheck', 'spellcheck', true, 'true', false, 'false', 'spellcheck on HTMLElement');
     26 testReflectAttribute('popover', 'popover', 'auto', 'manual', 'popover on HTMLElement', undefined, undefined, () => 'popover' in HTMLElement.prototype);
     27 
     28 testNodeDisconnector(function (customElement) {
     29    customElement.parentNode.innerText = '';
     30 }, 'innerText on HTMLElement');
     31 
     32 testNodeDisconnector(function (customElement) {
     33    customElement.outerText = '';
     34 }, 'outerText on HTMLElement');
     35 
     36 </script>
     37 </body>
     38 </html>