add another test

This commit is contained in:
Karl Seguin
2025-10-14 13:48:23 +08:00
parent afac4fc37f
commit ee8786444f

View File

@@ -226,7 +226,20 @@ let first_child = content.firstChild.nextSibling; // nextSibling because of line
</script>
<span id=token class="token" style="color:#ce9178">&quot;puppeteer &quot;</span>
<h3 id=name>Leto
<!-- -->
<!-- -->
Atreides</h3>
<script id=normalize>
const token = $('#token');
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue)
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue);
const name = $('#name');
testing.expectEqual([
"Leto\n ",
" ",
"\n ",
" ",
"\n Atreides"
], Array.from(name.childNodes).map((n) => n.nodeValue));
</script>