var d=document.createElement('ul'); d.innerHTML='<li>bla-bla</li>'; while (d.children.length) wrapper.appendChild(d.children[0])