_node = function(type, attr, win) {
        var w = win || Y.config.win,
            d = w.document,
            n = d.createElement(type),
            i;

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

        return n;
    }
Generates an HTML element, this is not appended to a document
@method _node
@param {string} type the type of element.
@param {string} attr the attributes.
@param {Window} win optional window to create the element in.
@return {HTMLElement} the generated node.
@private