Skip to content

Commit 8f34c94

Browse files
committed
fix(compiler-sfc): lang="" on a html tag produces error
1 parent 2018a26 commit 8f34c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/__tests__/parse.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ h1 { color: red }
145145
})
146146

147147
//#2566
148-
test('only template lang be treated as plain text', () => {
148+
test('div lang should not be treated as plain text', () => {
149149
const { errors } = parse(`
150150
<template lang="pug">
151151
<div lang="">

0 commit comments

Comments
 (0)