code: function(node, method) {
              var child = Y.Dom.getFirstChildBy(node, method),
                  children = child ? [child] : [];
  
              Y.Dom.getNextSiblingBy(child, function(node) {
                  if ( !method || method(node) ) {
                      children[children.length] = node;
                  }
                  return false; // fail test to collect all children
              });
  
              return children;
          }
docs: Returns an array of HTMLElement childNodes that pass the test method.
  @method getChildrenBy
  @param {HTMLElement} node The HTMLElement to start from
  @param {Function} method A boolean function used to test children
  that receives the node being tested as its only argument
  @return {Array} A static array of HTMLElements