public/javascripts/yui/dom/dom-debug.js
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;
        }
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;
        }
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 ; }
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
Returns an array of HTMLElement childNodes that pass the test method .