diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index a782bc83779..dd16251e220 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -144,6 +144,18 @@ h1 { color: red } expect(descriptor.template!.content).toBe(content) }) + //#2566 + test('div lang should not be treated as plain text', () => { + const { errors } = parse(` + + `) + expect(errors.length).toBe(0) + }) + test('error tolerance', () => { const { errors } = parse(`