-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Tempo.exports.utils.getElement = function (template, html) {
if (navigator.appVersion.indexOf("MSIE") > -1 && Tempo.exports.utils.equalsIgnoreCase(template.tagName, 'tr')) {
// Wrapping to get around read-only innerHTML
var el = window.document.createElement('div');
el.innerHTML = '<table><tbody>' + html + '</tbody></table>';
var depth = 3;
while (depth--) {
el = el.lastChild;
}
el.setAttribute('data-template', '');
for (var a = 0; a < template.attributes.length; a++) {
var attr = template.attributes[a];
el.setAttribute(attr.name, attr.value);
}
return el;
} else {
//No need to wrap
template.innerHTML = html;
return template;
}
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels