code: function (element, selector, testSelf) {
          return Y.DOM.ancestor(element, function(n) {
              return Y.Selector.test(n, selector);
          }, testSelf);
      }
docs: A convenience function to emulate Y.Node's aNode.ancestor(selector).
  @param {HTMLElement} element An HTMLElement to start the query from.
  @param {String} selector The CSS selector to test the node against.
  @return {HTMLElement} The ancestor node matching the selector, or null.
  @param {Boolean} testSelf optional Whether or not to include the element in the scan
  @static
  @method ancestor