Skip to content

fix: parsing error when <script> has attribute with empty value #220

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Sep 16, 2022

Conversation

ota-meshi
Copy link
Member

close #219

@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2022

🦋 Changeset detected

Latest commit: d8fe76f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-eslint-parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -157,6 +157,17 @@ function parseAttributeValue(
index,
};
}
if (valueFirstChar === quote) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wil id="'"(single quote in double quotes) be a problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ota-meshi ota-meshi merged commit f19019b into main Sep 16, 2022
@ota-meshi ota-meshi deleted the issue219 branch September 16, 2022 05:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing fails on script tag when id is empty
2 participants