mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -131,9 +131,12 @@ __PluginManager__.register('support', function(module, exports, require, global)
|
||||
if(isNode(html)) {
|
||||
return html;
|
||||
}
|
||||
if(isString(html)) {
|
||||
html = html.trim();
|
||||
}
|
||||
var nodeWrap = document.createElement('div');
|
||||
nodeWrap.innerHTML = html;
|
||||
var r = nodeWrap.firstElementChild;
|
||||
var r = nodeWrap.firstChild;
|
||||
r.remove();
|
||||
return r;
|
||||
}
|
||||
@@ -141,8 +144,15 @@ __PluginManager__.register('support', function(module, exports, require, global)
|
||||
if(isNodeList(html)) {
|
||||
return html;
|
||||
}
|
||||
if(isString(html)) {
|
||||
html = html.trim();
|
||||
}
|
||||
var nodeWrap = document.createElement('div');
|
||||
nodeWrap.innerHTML = html;
|
||||
if(isNode(html)) {
|
||||
nodeWrap.append(html);
|
||||
} else {
|
||||
nodeWrap.innerHTML = html;
|
||||
}
|
||||
return nodeWrap.childNodes;
|
||||
}
|
||||
function setNodeData(node, key, value) {
|
||||
|
||||
Reference in New Issue
Block a user