code: function(node, method) {
              var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
              return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
          }
docs: Returns the first HTMLElement child that passes the test method.
  @method getFirstChildBy
  @param {HTMLElement} node The HTMLElement to use as the starting point
  @param {Function} method A boolean function used to test children
  that receives the node being tested as its only argument
  @return {Object} HTMLElement or null if not found