Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>The element is not focused during the initial parsing task</title>
<link rel="author" title="Domenic Denicola" href="d@domenic.me">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<input autofocus>
<input autofocus>
<script>
"use strict";
test(() => {
const input = document.querySelector("input");
assert_equals(document.activeElement, document.body);
assert_not_equals(document.activeElement, input);
});
</script>