Lines Matching refs:parentNode
48 * Adds a node to |parentNode|, of type |tagName|.
49 * @param {!HtmlNode} parentNode The node that will be the parent of the new
54 function addNode(parentNode, tagName) {
55 var elem = parentNode.ownerDocument.createElement(tagName);
56 parentNode.appendChild(elem);
61 * Adds |text| to node |parentNode|.
62 * @param {!HtmlNode} parentNode The node to add text to.
66 function addTextNode(parentNode, text) {
67 var textNode = parentNode.ownerDocument.createTextNode(text);
68 parentNode.appendChild(textNode);
73 * Adds a node to |parentNode|, of type |tagName|. Then adds
75 * @param {!HtmlNode} parentNode The node that will be the parent of the new
81 function addNodeWithText(parentNode, tagName, text) {
82 var elem = parentNode.ownerDocument.createElement(tagName);
83 parentNode.appendChild(elem);