Skip to content

fix: reset vExpressionScriptState when ending mustache - #256

Merged
ota-meshi merged 1 commit into
vuejs:masterfrom
woongsikchoi:reset-expression-script-state
Apr 4, 2025
Merged

ota-meshi merged 1 commit into
vuejs:masterfrom
woongsikchoi:reset-expression-script-state

Conversation

@woongsikchoi

Copy link
Copy Markdown
Contributor

This PR resets vExpressionScriptState when ending mustache expression.

It fixes the problem that the following valid code results in unexpected-character-in-attribute-name and unexpected-solidus-in-tag errors:

<template>
  {{ 123 }}
  <textarea> }} <div </textarea>
</template>

@ota-meshi

Copy link
Copy Markdown
Member

I'm not sure what this PR solves.
Could you please open an issue and explain the problem in more detail? Also, please share a repo where we can reproduce the problem.

@ws807

ws807 commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

I have opened issue #260.
In the issue, I added a repo reproducing the issue and explained the problem in detail.

@ota-meshi ota-meshi linked an issue Apr 4, 2025 that may be closed by this pull request
4 tasks done

@ota-meshi ota-meshi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation and this PR. I will merge this PR.

@ota-meshi
ota-meshi merged commit 32056bc into vuejs:master Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<textarea> content after }} causes invalid vue/no-parsing-error

3 participants