Files
ladybird/Tests/LibWeb/Text/input/HTML/activeElement-body.html
Timothy Flynn 938f21dadc Tests/LibWeb: Move the "html" folder to "HTML"
This test was added a couple of days ago. The new folder is messing with
case-insensitive operating systems like macOS.
2026-01-21 11:01:42 -05:00

14 lines
561 B
HTML

<!DOCTYPE html>
<body>
<script src="../include.js"></script>
<div id="content">Test content</div>
<script>
test(() => {
// When nothing is explicitly focused, activeElement should return the body element
println("document.activeElement === document.body: " + (document.activeElement === document.body));
println("document.activeElement is null: " + (document.activeElement === null));
println("document.activeElement tagName: " + (document.activeElement ? document.activeElement.tagName : "null"));
});
</script>
</body>