mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
This test was added a couple of days ago. The new folder is messing with case-insensitive operating systems like macOS.
14 lines
561 B
HTML
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>
|