tor-browser

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

anchor-active-contenteditable.html (839B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
      4 <link rel="help" href="http://crbug.com/1007941">
      5 
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-actions.js"></script>
     10 <script src="/resources/testdriver-vendor.js"></script>
     11 
     12 <!-- This behavior is not explicitly specified. -->
     13 
     14 <a id=anchorid href="nonexistant">anchor</a>
     15 
     16 <script>
     17 anchorid.addEventListener('mousedown', () => {
     18  anchorid.contentEditable = true;
     19 });
     20 
     21 promise_test(async () => {
     22  await test_driver.click(anchorid);
     23  assert_equals(document.querySelector(':active'), null);
     24 }, 'Anchor elements should not stay :active when contentEditable is enabled.');
     25 </script>