public/javascripts/yui/yuiloader/yuiloader.js
function(type, attr, win) {
        var w = win || window, d=w.document, n=d.createElement(type);

        for (var i in attr) {
            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
                n.setAttribute(i, attr[i]);
            }
        }

        return n;
    }
function(type, attr, win) {
        var w = win || window, d=w.document, n=d.createElement(type);

        for (var i in attr) {
            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
                n.setAttribute(i, attr[i]);
            }
        }

        return n;
    }
function ( type , attr , win ) { var w = win || window , d = w . document , n = d . createElement ( type ) ; for ( var i in attr ) { if ( attr [ i ] && YAHOO . lang . hasOwnProperty ( attr , i ) ) { n . setAttribute ( i , attr [ i ] ) ; } } return n ; }
Generates an HTML element, this is not appended to a document
@method _node
@param type {string} the type of element
@param attr {string} the attributes
@param win {Window} optional window to create the element in
@return {HTMLElement} the generated node
@private
Generates an HTML element this is not appended to a document