Skip to content

Commit e01c09a

Browse files
superwfyyx990803
authored andcommitted
refactor(compiler): remove 'head' tag contains 'html' tag condition code (#5958)
remove 'head' tag contains 'html' tag condition I am not sure this is necessary, but all test passed after remove the code.
1 parent 3965e50 commit e01c09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/parser/html-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export function parseHTML (html, options) {
222222
}
223223
}
224224

225-
const unary = isUnaryTag(tagName) || tagName === 'html' && lastTag === 'head' || !!unarySlash
225+
const unary = isUnaryTag(tagName) || !!unarySlash
226226

227227
const l = match.attrs.length
228228
const attrs = new Array(l)

0 commit comments

Comments
 (0)