Fix raw status ending in the HTML tokenizer

This fixes a small mistake where the "raw" status wasn't being reset
once exiting the script or style tags. That means any text nodes that
followed would be misinterpreted as being raw.
This commit is contained in:
Eric Huss
2025-09-17 14:21:01 -07:00
parent cd3e26fb90
commit d27a2bdd1d
2 changed files with 2 additions and 1 deletions

View File

@@ -614,6 +614,7 @@ where
}
}
TagKind::EndTag => {
is_raw = false;
if self.is_html_tag_matching(&tag.name) {
self.pop();
}

View File

@@ -3,5 +3,5 @@
<script>
// script stuff <here>
</script>
< still in block
&lt; still in block
</div>