function(tagName, options, children) {
        var e = env.doc.createElement(tagName);
        utils.forEach(options || {}, function(value, name) {
            if (name == 'style') { e.style.cssText = value; }
            else if (name == 'html') { e.innerHTML = value; }
            else if (name == 'className') { e.className = value; }
            else { e.setAttribute(name, value); }
        });
        children && utils.forEach(children, function(c) {
            e.appendChild(c);
        });
        return e;
    }
function(tagName, options, children) {
        var e = env.doc.createElement(tagName);
        utils.forEach(options || {}, function(value, name) {
            if (name == 'style') { e.style.cssText = value; }
            else if (name == 'html') { e.innerHTML = value; }
            else if (name == 'className') { e.className = value; }
            else { e.setAttribute(name, value); }
        });
        children && utils.forEach(children, function(c) {
            e.appendChild(c);
        });
        return e;
    }
function ( tagName , options , children ) { var e = env . doc . createElement ( tagName ) ; utils . forEach ( options || { } , function ( value , name ) { if ( name == 'style' ) { e . style . cssText = value ; } else if ( name == 'html' ) { e . innerHTML = value ; } else if ( name == 'className' ) { e . className = value ; } else { e . setAttribute ( name , value ) ; } } ) ; children && utils . forEach ( children , function ( c ) { e . appendChild ( c ) ; } ) ; return e ; }
Convenience wrapper around document.createElement
Creates dom element with given tagName, cssText and innerHTML

@param {string} tagName
@param {string=} cssText
@param {string=} innerHTML
@returns {Element} created element
Convenience wrapper around document . createElement Creates dom element with given tagName cssText and innerHTML