mirror of https://github.com/vuejs/core.git
wip: should parse sfc template with lang=html
This commit is contained in:
parent
b59eabdc0d
commit
1b4efc30c3
|
@ -296,10 +296,11 @@ const tokenizer = new Tokenizer(stack, {
|
||||||
: getLoc(currentAttrStartIndex - 1, currentAttrEndIndex + 1)
|
: getLoc(currentAttrStartIndex - 1, currentAttrEndIndex + 1)
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
currentAttrValue &&
|
|
||||||
tokenizer.inSFCRoot &&
|
tokenizer.inSFCRoot &&
|
||||||
currentElement.tag === 'template' &&
|
currentElement.tag === 'template' &&
|
||||||
currentProp.name === 'lang'
|
currentProp.name === 'lang' &&
|
||||||
|
currentAttrValue &&
|
||||||
|
currentAttrValue !== 'html'
|
||||||
) {
|
) {
|
||||||
// SFC root template with preprocessor lang, force tokenizer to
|
// SFC root template with preprocessor lang, force tokenizer to
|
||||||
// RCDATA mode
|
// RCDATA mode
|
||||||
|
|
Loading…
Reference in New Issue