mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 01:47:00 +02: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.
(cherry picked from commit e40352b6b59e99a9f3fd922142c2abafd9840e6c)
9 lines
218 B
HTML
9 lines
218 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div name=""></div>
|
|
<script>
|
|
test(() => {
|
|
println(`document.getElementsByName("").length: ${document.getElementsByName("").length}`);
|
|
});
|
|
</script>
|