From 22d31b95fc3ee955855e924d61c9a8db11a64108 Mon Sep 17 00:00:00 2001 From: superwf Date: Fri, 23 Jun 2017 14:09:20 +0800 Subject: [PATCH] refactor($compile): remove 'head' tag contains 'html' tag condition code 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 4e4c0686758..c49aec09da3 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)