resolve = function(n) {
        if (!n) {
            return n;
        }
        try {
            if (n && 3 == n.nodeType) {
                n = n.parentNode;
            }
        } catch(e) {
            return null;
        }

        return Y.one(n);
    }
Returns a wrapped node.  Intended to be used on event targets,
so it will return the node's parent if the target is a text
node.

If accessing a property of the node throws an error, this is
probably the anonymous div wrapper Gecko adds inside text
nodes.  This likely will only occur when attempting to access
the relatedTarget.  In this case, we now return null because
the anonymous div is completely useless and we do not know
what the related target was because we can't even get to
the element's parent node.

@method resolve
@private