We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d406a15 commit 63ac13dCopy full SHA for 63ac13d
src/jqLite.js
@@ -207,7 +207,7 @@ function jqLiteBuildFragment(html, context) {
207
nodes.push(context.createTextNode(html));
208
} else {
209
// Convert html into DOM nodes
210
- tmp = tmp || fragment.appendChild(context.createElement("div"));
+ tmp = fragment.appendChild(context.createElement("div"));
211
tag = (TAG_NAME_REGEXP.exec(html) || ["", ""])[1].toLowerCase();
212
wrap = wrapMap[tag] || wrapMap._default;
213
tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1></$2>") + wrap[2];
0 commit comments