| 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> |
| 11 <select disabled> | 11 <select disabled> |
| 12 <optgroup label="options" disabled> | 12 <optgroup label="options" disabled> |
| 13 <option value="option1" disabled>option1 | 13 <option value="option1" disabled>option1 |
| 14 <option value="option2">option2 | 14 <option value="option2">option2 |
| 15 </select> | 15 </select> |
| 16 <textarea disabled>textarea</textarea> | 16 <textarea disabled>textarea</textarea> |
| 17 <fieldset disabled> | 17 <fieldset disabled> |
| (...skipping 17 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 |