mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
This change implements the algorithms necessary to focus elements with the autofocus attribute on page load.
14 lines
351 B
HTML
14 lines
351 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<input id="first" autofocus>
|
|
<input id="second" autofocus>
|
|
<script>
|
|
document.getElementById("first").remove();
|
|
asyncTest(done => {
|
|
requestAnimationFrame(() => {
|
|
println(`activeElement.id=${document.activeElement.id}`);
|
|
done();
|
|
});
|
|
});
|
|
</script>
|