mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Ensure document.getElementsByClassName("") returns no elements
Previously, `document.getElementsByClassName("")` would return a
collection containing all elements in the given document.
This commit is contained in:
committed by
Andreas Kling
parent
faf64bfb41
commit
0fceede029
Notes:
github-actions[bot]
2024-07-23 06:59:20 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/0fceede029e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/773
@@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div class=""></div>
|
||||
<script>
|
||||
test(() => {
|
||||
println(`document.getElementsByClassName("").length: ${document.getElementsByClassName("").length}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user