mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37:00 +02:00
Previously, `document.getElementsByClassName("")` would return a
collection containing all elements in the given document.
(cherry picked from commit 0fceede029e6af0cab98e86f20367d8835008472)
9 lines
229 B
HTML
9 lines
229 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div class=""></div>
|
|
<script>
|
|
test(() => {
|
|
println(`document.getElementsByClassName("").length: ${document.getElementsByClassName("").length}`);
|
|
});
|
|
</script>
|