Skip to content

Avoid virtual template code is broken when attribute name has hyphen #1222

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented Apr 24, 2019

Currently, when a template includes some attribute having hyphen on its name, the virtual Vue template will be broken and provides numerous errors. This is because the transformer try to generate the attribute name as identifier even though hyphen is invalid character as identifier.

I've simply changed them to string literal to accept hyphen.

@ktsn ktsn mentioned this pull request Apr 24, 2019
3 tasks
@ktsn
Copy link
Member Author

ktsn commented Apr 24, 2019

Oh, CI is failing. I'll investigate it.

@ktsn
Copy link
Member Author

ktsn commented Apr 24, 2019

That's weird. Auto complete test passes on my local 🤔

@octref octref merged commit 88330c3 into vuejs:master Apr 24, 2019
@octref
Copy link
Member

octref commented Apr 24, 2019

When that many tests fail it's probably because VLS crashed. All tests passing on my local machine too though so I'm merging this.

@octref octref added this to the April 2019 milestone Apr 26, 2019
@ktsn ktsn deleted the fix-hyphen-attribute branch January 29, 2021 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants