| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Disabled elements</title> | 3 <title>Disabled elements</title> |
| 4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org"> | 4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org"> |
| 5 <link rel=help href="https://html.spec.whatwg.org/multipage/#disabled-elements"> | 5 <link rel=help href="https://html.spec.whatwg.org/multipage/#disabled-elements"> |
| 6 <script src="../../../../../resources/testharness.js"></script> | 6 <script src="../../../../../resources/testharness.js"></script> |
| 7 <script src="../../../../../resources/testharnessreport.js"></script> | 7 <script src="../../../../../resources/testharnessreport.js"></script> |
| 8 <div id="log"></div> | 8 <div id="log"></div> |
| 9 <button disabled>button</button> | 9 <button disabled>button</button> |
| 10 <input disabled> | 10 <input disabled> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }); | 35 }); |
| 36 | 36 |
| 37 ["a", "span"].forEach(function(el) { | 37 ["a", "span"].forEach(function(el) { |
| 38 test(function() { | 38 test(function() { |
| 39 var element = document.querySelector(el); | 39 var element = document.querySelector(el); |
| 40 element.focus(); | 40 element.focus(); |
| 41 assert_equals(document.activeElement, element, "focus on a <" + el + "> wi
th a disabled attribute should make it the activeElement"); | 41 assert_equals(document.activeElement, element, "focus on a <" + el + "> wi
th a disabled attribute should make it the activeElement"); |
| 42 }, "A disabled <" + el + "> should be focusable"); | 42 }, "A disabled <" + el + "> should be focusable"); |
| 43 }); | 43 }); |
| 44 </script> | 44 </script> |
| OLD | NEW |