Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/html/reftests/autofocus/reftest.list
<!DOCTYPE html>
<html class="reftest-wait">
<link rel='stylesheet' type='text/css' href='style.css'>
<script>
function frameLoadHandler()
{
var i = document.createElement('input');
i.autofocus = true;
document.body.appendChild(i);
setTimeout(document.documentElement.removeAttribute('class'), 0);
}
</script>
<body>
<iframe onload="frameLoadHandler();" srcdoc="<input autofocus>"></iframe>
</body>
</html>