vuejs/core

"&" is not allowed in attribute values

Closed this issue · 1 comments

veaba commented

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 commented

Also too:

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