Skip to content

Commit

Permalink
fix(compiler-sfc): lang="" on a html tag produces error
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Nov 10, 2020
1 parent 2018a26 commit 8f34c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/__tests__/parse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ h1 { color: red }
})

//#2566
test('only template lang be treated as plain text', () => {
test('div lang should not be treated as plain text', () => {
const { errors } = parse(`
<template lang="pug">
<div lang="">
Expand Down

0 comments on commit 8f34c94

Please sign in to comment.