mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00

We had a const and non-const version of this function, with slightly different behavior (oops!) This patch consolidates the implementations and keeps only the correct behavior in there. Fixes an issue where comments were not collapsible on Hacker News.
7 lines
232 B
HTML
7 lines
232 B
HTML
<div id="foo" n="1"></div><div id="foo" n="2"></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println("getElementById('foo') => " + document.getElementById("foo").getAttribute("n"));
|
|
});
|
|
</script>
|