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
commit 51d7998ba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>