function create(htmlStr) {
    var frag = document.createDocumentFragment(),
        temp = document.createElement('div');
    temp.innerHTML = htmlStr;
    while (temp.firstChild) {
        frag.appendChild(temp.firstChild);
    }
    return frag;
}
//create js element node thing with an html string

create js element node thing with an html string
create js element node thing with an html string
function create(htmlStr) {
    var frag = document.createDocumentFragment(),
        temp = document.createElement('div');
    temp.innerHTML = htmlStr;
    while (temp.firstChild) {
        frag.appendChild(temp.firstChild);
    }
    return frag;
}
function create ( htmlStr ) { var frag = document . createDocumentFragment ( ) , temp = document . createElement ( 'div' ) ; temp . innerHTML = htmlStr ; while ( temp . firstChild ) { frag . appendChild ( temp . firstChild ) ; } return frag ; }
create js element node thing with an html string
create js element node thing with an html string