blob: 8ad1c7eefdb9ea29afcf2bcbe2a6f0acb22a04e5 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
This test passes if the activeElement is the input element rather than the body
(which it would be if the sandbox didn't allow autofocus although allow-scripts flag is set).
<iframe sandbox="allow-scripts"
src="data:text/html,<input autofocus onfocus><script>alert(document.activeElement.tagName)</script>"></iframe>