mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37:00 +02: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. (cherry picked from commit 98f88d49de852e1e524655accb39724f1134a23f)
8 lines
232 B
HTML
8 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>
|