add a test for the changes to parsing adjascent text ndoes

This commit is contained in:
Karl Seguin
2025-10-14 00:23:35 +08:00
parent 99f8fe1592
commit afac4fc37f
3 changed files with 8 additions and 2 deletions

View File

@@ -224,3 +224,9 @@ let first_child = content.firstChild.nextSibling; // nextSibling because of line
testing.expectEqual(6, Node.ENTITY_NODE);
testing.expectEqual(12, Node.NOTATION_NODE);
</script>
<span id=token class="token" style="color:#ce9178">&quot;puppeteer &quot;</span>
<script id=normalize>
const token = $('#token');
testing.expectEqual('"puppeteer "', token.firstChild.nodeValue)
</script>