Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
external
/
wpt
/
html
/
interaction
/
focus
/
the-autofocus-attribute
/
resources
/
moving-autofocus-to-parent.html
blob: fc6c298a46e376cf45089f168cf841cab59ffd5c [
file
] [
log
] [
blame
]
<!DOCTYPE html>
<body>
<script>
const
input
=
document
.
createElement
(
'input'
);
input
.
autofocus
=
true
;
document
.
body
.
appendChild
(
input
);
input
.
autofocus
=
false
;
window
.
opener
.
document
.
body
.
appendChild
(
input
);
</script>
</body>