bundles/org.eclipse.orion.client.webtools/web/webtools/htmlOutliner.js
function(node) {
			var label = node.name;
			//include id if present
			var match = /id=['"]\S*["']/.exec(node.raw); //$NON-NLS-0$
			if (match) {
				label = label + " " + match[0]; //$NON-NLS-0$
			}
			//include class if present
			match = /class=['"]\S*["']/.exec(node.raw); //$NON-NLS-0$
			if (match) {
				label = label + " " + match[0]; //$NON-NLS-0$
			}
			return label;
		}
function(node) {
			var label = node.name;
			//include id if present
			var match = /id=['"]\S*["']/.exec(node.raw); //$NON-NLS-0$
			if (match) {
				label = label + " " + match[0]; //$NON-NLS-0$
			}
			//include class if present
			match = /class=['"]\S*["']/.exec(node.raw); //$NON-NLS-0$
			if (match) {
				label = label + " " + match[0]; //$NON-NLS-0$
			}
			return label;
		}
function ( node ) { var label = node . name ; //include id if present
 var match = / id=['"]\S*["'] / . exec ( node . raw ) ; //$NON-NLS-0$
 if ( match ) { label = label + " " + match [ 0 ] ; //$NON-NLS-0$
 } //include class if present
 match = / class=['"]\S*["'] / . exec ( node . raw ) ; //$NON-NLS-0$
 if ( match ) { label = label + " " + match [ 0 ] ; //$NON-NLS-0$
 } return label ; }
Converts an HTML dom element into a label
@param {Object} element The HTML element
@return {String} A human readable label
Converts an HTML dom element into a label