From e01c09adad84fbcf9821ba7bbfc5e3300b2ba853 Mon Sep 17 00:00:00 2001 From: superwf Date: Fri, 30 Jun 2017 08:49:25 +0800 Subject: [PATCH] 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. --- src/compiler/parser/html-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser/html-parser.js b/src/compiler/parser/html-parser.js index 4e4c068675..c49aec09da 100644 --- a/src/compiler/parser/html-parser.js +++ b/src/compiler/parser/html-parser.js @@ -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)