diff --git a/src/evented-tokenizer.ts b/src/evented-tokenizer.ts index d387df7..2b7fe08 100644 --- a/src/evented-tokenizer.ts +++ b/src/evented-tokenizer.ts @@ -120,7 +120,7 @@ export default class EventedTokenizer { return (tag === 'title' && this.input.substring(this.index, this.index + 8) !== '') || (tag === 'style' && this.input.substring(this.index, this.index + 8) !== '') || - (tag === 'script' && this.input.substring(this.index, this.index + 9) !== ''); + (tag === 'script' && this.input.substring(this.index, this.index + 9) !== '<\/script>'); } states: { [k in TokenizerState]?: (this: EventedTokenizer) => void } = {