Fixed rendering of HTML strings

This commit is contained in:
Phil Hughes 2016-09-06 17:31:08 +01:00 committed by Jacob Schatz
parent 86d59657fc
commit ef5a76f68a

View file

@ -503,7 +503,13 @@
var ul = document.createElement('ul');
for (var i = 0; i < html.length; i++) {
ul.appendChild(html[i]);
var el = html[i];
if (typeof el === 'string') {
ul.innerHTML += el;
} else {
ul.appendChild(el);
}
}
return ul;