refactor(jqLite): remove unused code in jqLiteBuildFragment()

Closes #14822
This commit is contained in:
Deplay
2016-06-24 09:55:08 +08:00
committed by Georgios Kalpakas
parent fb3bbc9a00
commit 2e0e77ee80
+1 -1
View File
@@ -207,7 +207,7 @@ function jqLiteBuildFragment(html, context) {
nodes.push(context.createTextNode(html));
} else {
// Convert html into DOM nodes
tmp = tmp || fragment.appendChild(context.createElement("div"));
tmp = fragment.appendChild(context.createElement("div"));
tag = (TAG_NAME_REGEXP.exec(html) || ["", ""])[1].toLowerCase();
wrap = wrapMap[tag] || wrapMap._default;
tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1></$2>") + wrap[2];