Skip to content

</script> in script block breaks SFC parsing #7391

@danielroe

Description

@danielroe

Vue version

3.2.45

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9jstqw0AMRX9l0DqegT427sSkP9HVbFxbpG4zDyTZpQT/e+WahjwgG4HOlXR0hNdS7DQi1OAFYzm0go3vh6nxbq0nGpLnjoYi5tCm/TaAcADDKGPRrMuJxcSft5bM1gTwbh1uArzo5n9nYANDLJmkim2xn5yTqo8hGd1ZA71amz+yMP1t6QN8iBSunRtT+drbLke308zRmGSIWPU57h7tg3161r9ZzrlFjtU75W9GUmOAzdlxp3BCqghTj4R0V3Y1eyG8ym6ki3MOaYb5FyirgIQ=

Steps to reproduce

Include </script> within a string in the script block

What is expected?

The template should still compile.

What is actually happening?

The <script> block is not correctly parsed.

System Info

No response

Any additional comments?

Upstream issue: nuxt/nuxt#15624
Fuller reproduction: https://stackblitz.com/edit/github-mgrldc

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions