We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b555f02 commit 11da12bCopy full SHA for 11da12b
packages/compiler-core/src/tokenizer.ts
@@ -661,7 +661,17 @@ export default class Tokenizer {
661
}
662
663
private handleAttrStart(c: number) {
664
- if (c === CharCodes.LowerV && this.peek() === CharCodes.Dash) {
+ if (
665
+ (__DEV__ || !__BROWSER__) &&
666
+ (c === CharCodes.DoubleQuote ||
667
+ c === CharCodes.SingleQuote ||
668
+ c === CharCodes.Lt)
669
+ ) {
670
+ this.cbs.onerr(
671
+ ErrorCodes.UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME,
672
+ this.index,
673
+ )
674
+ } else if (c === CharCodes.LowerV && this.peek() === CharCodes.Dash) {
675
this.state = State.InDirName
676
this.sectionStart = this.index
677
} else if (
0 commit comments