mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 08:02:52 +00:00
Previously, if a document had any element with a name attribute that was set to the empty string, then `document.getElementsByName("")` and `element.getElementsByName("")` would return a collection including those elements.
8 lines
218 B
HTML
8 lines
218 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div name=""></div>
|
|
<script>
|
|
test(() => {
|
|
println(`document.getElementsByName("").length: ${document.getElementsByName("").length}`);
|
|
});
|
|
</script>
|