tor-browser

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

button-menu-historical.html (981B)


      1 <!DOCTYPE HTML>
      2 <title>Test that nobody implemented the now-removed menu type and attribute on button</title>
      3 <meta charset="utf-8">
      4 <link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
      5 <link rel="help" href="https://github.com/whatwg/html/pull/2342">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 
      9 <button id="b" type="menu" menu="m">button</button>
     10 <menu id="m"></menu>
     11 
     12 <script>
     13 "use strict";
     14 
     15 const button = document.querySelector("button");
     16 
     17 test(() => {
     18  assert_false('menu' in button, 'The menu property must not exist on the button');
     19  assert_equals(button.menu, undefined, 'The value of the menu property on the button must be undefined');
     20 }, 'button.menu, the potentially-reflecting IDL attribute, does not exist');
     21 
     22 test(() => {
     23  assert_equals(button.type, 'submit', 'The type property must reflect as its invalid value default of submit');
     24 }, 'button.type reflects properly');
     25 </script>