mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +02:00
Previously, if a document had an element whose id was the empty string,
then `document.getElementById("")` and `element.getElementById("")`
would return that element.
(cherry picked from commit f666d967d6bac289346cf19f833f81bdc22adbdb)
9 lines
196 B
HTML
9 lines
196 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div id=""></div>
|
|
<script>
|
|
test(() => {
|
|
println(`document.getElementById(""): ${document.getElementById("")}`);
|
|
});
|
|
</script>
|