bundles/org.eclipse.orion.client.webtools/web/webtools/htmlOutliner.js
function(dom) {
			//recursively walk the dom looking for a body element
			for (var i = 0; i < dom.length; i++) {
				if (dom[i].name === "body") { //$NON-NLS-0$
					return dom[i].children;
				}
				if (dom[i].children) {
					var result = this.findBody(dom[i].children);
					if (result) {
						return result;
					}
				}
			}
			return null;
		}
function(dom) {
			//recursively walk the dom looking for a body element
			for (var i = 0; i < dom.length; i++) {
				if (dom[i].name === "body") { //$NON-NLS-0$
					return dom[i].children;
				}
				if (dom[i].children) {
					var result = this.findBody(dom[i].children);
					if (result) {
						return result;
					}
				}
			}
			return null;
		}
function ( dom ) { //recursively walk the dom looking for a body element
 for ( var i = 0 ; i < dom . length ; i ++ ) { if ( dom [ i ] . name === "body" ) { //$NON-NLS-0$
 return dom [ i ] . children ; } if ( dom [ i ] . children ) { var result = this . findBody ( dom [ i ] . children ) ; if ( result ) { return result ; } } } return null ; }
Returns the DOM node corresponding to the HTML body,
or null if no such node could be found.
Returns the DOM node corresponding to the HTML body or null if no such node could be found .