ladybird/Tests/LibWeb/Text/input/DOM/HTMLCollection-empty-string-as-property-name.html
Andreas Kling e7febd347b LibWeb: Don't advertise the empty string as HTMLCollection property name
This fixes wpt/dom/collections/HTMLCollection-empty-name.html
2024-05-27 17:33:29 +02:00

10 lines
289 B
HTML

<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>