refactor(jqLite): remove unused code in jqLiteBuildFragment()
Closes #14822
This commit is contained in:
committed by
Georgios Kalpakas
parent
fb3bbc9a00
commit
2e0e77ee80
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user