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:
parent
cd3e26fb90
commit
d27a2bdd1d
2 changed files with 2 additions and 1 deletions
|
|
@ -614,6 +614,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TagKind::EndTag => {
|
TagKind::EndTag => {
|
||||||
|
is_raw = false;
|
||||||
if self.is_html_tag_matching(&tag.name) {
|
if self.is_html_tag_matching(&tag.name) {
|
||||||
self.pop();
|
self.pop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
<script>
|
<script>
|
||||||
// script stuff <here>
|
// script stuff <here>
|
||||||
</script>
|
</script>
|
||||||
< still in block
|
< still in block
|
||||||
</div>
|
</div>
|
||||||
Loading…
Add table
Reference in a new issue