Merge pull request #2845 from ehuss/script-in-block

Fix raw status ending in the HTML tokenizer
This commit is contained in:
Eric Huss
2025-09-17 21:27:14 +00:00
committed by GitHub
4 changed files with 16 additions and 0 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

@@ -0,0 +1,7 @@
<div>
HTML block start
<script>
// script stuff <here>
</script>
&lt; still in block
</div>

View File

@@ -1,3 +1,4 @@
# Summary
- [Comment in list](./comment-in-list.md)
- [Script in block](./script-in-block.md)

View File

@@ -0,0 +1,7 @@
<div>
HTML block start
<script>
// script stuff <here>
</script>
&lt; still in block
</div>