| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 <script> | 5 <script> |
| 6 description('Tests autofocus when a modal dialog is opened.'); | 6 description('Tests autofocus when a modal dialog is opened.'); |
| 7 | 7 |
| 8 function test() { | 8 function test() { |
| 9 shouldBe('document.activeElement', 'document.getElementById("outer-button")'
); | 9 shouldBe('document.activeElement', 'document.getElementById("outer-button")'
); |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 <button autofocus></button> | 49 <button autofocus></button> |
| 50 </dialog> | 50 </dialog> |
| 51 <div> | 51 <div> |
| 52 <span> | 52 <span> |
| 53 <button id="autofocus-button" autofocus></button> | 53 <button id="autofocus-button" autofocus></button> |
| 54 </span> | 54 </span> |
| 55 </div> | 55 </div> |
| 56 <button id="another-button" autofocus></button> | 56 <button id="another-button" autofocus></button> |
| 57 </dialog> | 57 </dialog> |
| 58 </body> | 58 </body> |
| 59 <script src="../../js/resources/js-test-post.js"></script> | |
| 60 </html> | 59 </html> |
| OLD | NEW |