mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
Previously, if a document had an element whose id was the empty string, then `document.getElementById("")` and `element.getElementById("")` would return that element.
8 lines
196 B
HTML
8 lines
196 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div id=""></div>
|
|
<script>
|
|
test(() => {
|
|
println(`document.getElementById(""): ${document.getElementById("")}`);
|
|
});
|
|
</script>
|