fix(compiler-sfc): the empty lang attribute should be treated as no lang specified (#3051)

This commit is contained in:
HcySunYang
2021-02-04 02:11:45 +08:00
committed by GitHub
parent f262438073
commit 6d5b623512
2 changed files with 10 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ export function parse(
p.type === NodeTypes.ATTRIBUTE &&
p.name === 'lang' &&
p.value &&
p.value.content &&
p.value.content !== 'html'
))
) {