B2G/gecko/toolkit/devtools/Console.jsm
/**
 * Create a simple debug representation of a given element.
 *
 * @param {nsIDOMElement} aElement
 *        The element to debug
 * @return {string}
 *        A simple single line representation of aElement
 */
Create a simple debug representation of a given element.
@param {nsIDOMElement} aElement
The element to debug
@return {string}
A simple single line representation of aElement
Create a simple debug representation of a given element . @param { nsIDOMElement } aElement The element to debug @return { string } A simple single line representation of aElement
function debugElement(aElement) {
  return "<" + aElement.tagName +
      (aElement.id ? "#" + aElement.id : "") +
      (aElement.className ?
          "." + aElement.className.split(" ").join(" .") :
          "") +
      ">";
}
function debugElement ( aElement ) { return "<" + aElement . tagName + ( aElement . id ? "#" + aElement . id : "" ) + ( aElement . className ? "." + aElement . className . split ( " " ) . join ( " ." ) : "" ) + ">" ; }
Create a simple debug representation of a given element.
Create a simple debug representation of a given element .