mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Don't advertise the empty string as HTMLCollection property name
This fixes wpt/dom/collections/HTMLCollection-empty-name.html
This commit is contained in:
parent
8988dce93d
commit
e7febd347b
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/awesomekling
Commit: e7febd347b
Pull-request: https://github.com/SerenityOS/serenity/pull/24461
3 changed files with 13 additions and 1 deletions
|
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<div id></div>
|
||||
<div id=haxx></div>
|
||||
<script>
|
||||
test(() => {
|
||||
var c = document.getElementsByTagName("*");
|
||||
println("Empty string in collection: " + ("" in c));
|
||||
println("'haxx' in collection: " + ("haxx" in c));
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue