Skip to content

Commit

Permalink
refactor(compiler): remove 'head' tag contains 'html' tag condition c…
Browse files Browse the repository at this point in the history
…ode (#5958)

remove 'head' tag contains 'html' tag condition I am not sure this is necessary, but all test passed
after remove the code.
  • Loading branch information
superwf authored and yyx990803 committed Jun 30, 2017
1 parent 3965e50 commit e01c09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/parser/html-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export function parseHTML (html, options) {
}
}

const unary = isUnaryTag(tagName) || tagName === 'html' && lastTag === 'head' || !!unarySlash
const unary = isUnaryTag(tagName) || !!unarySlash

const l = match.attrs.length
const attrs = new Array(l)
Expand Down

0 comments on commit e01c09a

Please sign in to comment.