bundles/org.eclipse.orion.client.webtools/web/webtools/htmlOutliner.js
function(dom) {
			//end recursion
			if (!dom) {
				return null;
			}
			var outline = [];
			for (var i = 0; i < dom.length; i++) {
				var node = dom[i];
				if(this.skip(node)) {
				    continue;
				}
				var element = {
					label: this.domToLabel(node),
					children: this.domToOutline(node.children),
					start: node.range[0],
					end: node.range[1]
				};
				outline.push(element);
			}
			if(outline.length > 0) {
				return outline;
			}
			return null;
		}
function(dom) {
			//end recursion
			if (!dom) {
				return null;
			}
			var outline = [];
			for (var i = 0; i < dom.length; i++) {
				var node = dom[i];
				if(this.skip(node)) {
				    continue;
				}
				var element = {
					label: this.domToLabel(node),
					children: this.domToOutline(node.children),
					start: node.range[0],
					end: node.range[1]
				};
				outline.push(element);
			}
			if(outline.length > 0) {
				return outline;
			}
			return null;
		}
function ( dom ) { //end recursion
 if ( ! dom ) { return null ; } var outline = [ ] ; for ( var i = 0 ; i < dom . length ; i ++ ) { var node = dom [ i ] ; if ( this . skip ( node ) ) { continue ; } var element = { label : this . domToLabel ( node ) , children : this . domToOutline ( node . children ) , start : node . range [ 0 ] , end : node . range [ 1 ] } ; outline . push ( element ) ; } if ( outline . length > 0 ) { return outline ; } return null ; }
Converts an HTML DOM node into an outline element
@param {Object} An HTML DOM node as returned by the Tautologistics HTML parser
@return {Object} A node in the outline tree
Converts an HTML DOM node into an outline element