OLD | NEW |
1 <script> | 1 <script> |
2 if (window.testRunner) { | 2 if (window.testRunner) { |
3 testRunner.dumpAsText(); | 3 testRunner.dumpAsText(); |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 } | 5 } |
6 </script> | 6 </script> |
7 This test passes if the activeElement is the input element rather than the body | 7 This test passes if the activeElement is the input element rather than the body |
8 (which it would be if the sandbox didn't allow autofocus although allow-scripts
flag is set). | 8 (which it would be if the sandbox didn't allow autofocus although allow-scripts
flag is set). |
9 <iframe sandbox="allow-scripts" | 9 <iframe sandbox="allow-scripts" |
10 src="data:text/html,<input autofocus onfocus='alert(document.activeElement.t
agName); testRunner.notifyDone();'>"></iframe> | 10 src="data:text/html,<input autofocus onfocus='console.log(document.activeEle
ment.tagName); testRunner.notifyDone();'>"></iframe> |
OLD | NEW |