1
0
Fork 0
firefox/dom/html/reftests/autofocus/button-create.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
688 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<link rel='stylesheet' type='text/css' href='style.css'>
<body>
<script>
var body = document.body;
var i = document.createElement('button');
i.autofocus = false;
body.appendChild(i);
i = document.createElement('button');
i.autofocus = true;
i.onfocus = function() { setTimeout(document.documentElement.removeAttribute('class'), 0); };
body.appendChild(i);
i = document.createElement('button');
i.autofocus = true;
i.onfocus = function() { setTimeout(document.documentElement.removeAttribute('class'), 0); };
body.appendChild(i);
</script>
</body>
</html>