src/console/simpleyui.js
function(content) {
        if (content) {
            if (content._node) { // map to DOMNode
                content = content._node;
            } else if (content._nodes) { // convert DOMNodeList to documentFragment
                content = Y_DOM._nl2frag(content._nodes);
            }

        }

        Y_DOM.addHTML(this._node, content, 'replace');
        return this;
    }
function(content) {
        if (content) {
            if (content._node) { // map to DOMNode
                content = content._node;
            } else if (content._nodes) { // convert DOMNodeList to documentFragment
                content = Y_DOM._nl2frag(content._nodes);
            }

        }

        Y_DOM.addHTML(this._node, content, 'replace');
        return this;
    }
function ( content ) { if ( content ) { if ( content . _node ) { // map to DOMNode content = content . _node ; } else if ( content . _nodes ) { // convert DOMNodeList to documentFragment content = Y_DOM . _nl2frag ( content . _nodes ) ; } } Y_DOM . addHTML ( this . _node , content , 'replace' ) ; return this ; }
Replaces the node's current content with the content.
@method setContent
@param {String | Y.Node | HTMLElement} content The content to insert
@chainable
Replaces the node s current content with the content .