mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 20:59:00 +00: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:
parent
faf64bfb41
commit
0fceede029
Notes:
github-actions[bot]
2024-07-23 06:59:20 +00:00
Author: https://github.com/tcl3
Commit: 0fceede029
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/773
4 changed files with 23 additions and 10 deletions
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div class=""></div>
|
||||
<script>
|
||||
test(() => {
|
||||
println(`document.getElementsByClassName("").length: ${document.getElementsByClassName("").length}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue