B2G/gecko/browser/devtools/webconsole/PropertyPanel.jsm
/**
 * Creates a new DOMNode and appends it to aParent.
 *
 * @param nsIDOMDocument aDocument
 *        Document to create the new DOMNode.
 * @param nsIDOMNode aParent
 *        A parent node to append the created element.
 * @param string aTag
 *        Name of the tag for the DOMNode.
 * @param object aAttributes
 *        Attributes set on the created DOMNode.
 * @returns nsIDOMNode
 */
Creates a new DOMNode and appends it to aParent.
@param nsIDOMDocument aDocument
Document to create the new DOMNode.
@param nsIDOMNode aParent
A parent node to append the created element.
@param string aTag
Name of the tag for the DOMNode.
@param object aAttributes
Attributes set on the created DOMNode.
Creates a new DOMNode and appends it to aParent . @param nsIDOMDocument aDocument Document to create the new DOMNode . @param nsIDOMNode aParent A parent node to append the created element . @param string aTag Name of the tag for the DOMNode . @param object aAttributes Attributes set on the created DOMNode .
function appendChild(aDocument, aParent, aTag, aAttributes)
{
  let node = createElement(aDocument, aTag, aAttributes);
  aParent.appendChild(node);
  return node;
}
function appendChild ( aDocument , aParent , aTag , aAttributes ) { let node = createElement ( aDocument , aTag , aAttributes ) ; aParent . appendChild ( node ) ; return node ; }
Creates a new DOMNode and appends it to aParent.
Creates a new DOMNode and appends it to aParent .