Skip to content
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

"&" is not allowed in attribute values #663

Closed
veaba opened this issue Jan 27, 2020 · 1 comment
Closed

"&" is not allowed in attribute values #663

veaba opened this issue Jan 27, 2020 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@veaba
Copy link
Member

veaba commented Jan 27, 2020

Version

16.0.0-alpha.2

Reproduction link

https://vue-next-template-explorer.netlify.com/#%7B%22src%22%3A%22%3Ca%20href%3D%5C%22github.2com%2Flogin%2Fo2adu4th%2Faduthorize%3Fclient_id%3Da%26e%5C%22%20target%3D%5C%22_blank%5C%22%3Ehello%20%3C%2Fa%3E%5Cn%22%2C%22options%22%3A%7B%22mode%22%3A%22module%22%2C%22prefixIdentifiers%22%3Afalse%2C%22hoistStatic%22%3Atrue%2C%22cacheHandlers%22%3Afalse%2C%22scopeId%22%3Anull%7D%7D

Steps to reproduce

html code

<a href="github.2com/login/o2adu4th/aduthorize?client_id=a&e" target="_blank">hello </a>

What is expected?

No error

What is actually happening?

Failed to compile.

VueCompilerError: Unknown entity name.


Error in character & in the href.

@veaba veaba changed the title VueCompilerError: Unknown entity name, & exists in a tag VueCompilerError: Unknown entity name, & exists in a tag, 16.0.0-alpha.2 version. Jan 27, 2020
@posva posva transferred this issue from vuejs/vue-loader Jan 27, 2020
@posva posva added the 🐞 bug Something isn't working label Jan 28, 2020
@posva posva changed the title VueCompilerError: Unknown entity name, & exists in a tag, 16.0.0-alpha.2 version. "&" is not allowed in attribute values Jan 28, 2020
@veaba
Copy link
Member Author

veaba commented Jan 28, 2020

Also too:

<li v-if="!authObj.isAuth&&authObj.oAuthUrl"></li>

@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants