in asdoc/library/closure/goog/dom/dom.js [1151:1207]
case String(goog.dom.TagName.FRAME):
case String(goog.dom.TagName.HR):
case String(goog.dom.TagName.IMG):
case String(goog.dom.TagName.INPUT):
case String(goog.dom.TagName.IFRAME):
case String(goog.dom.TagName.ISINDEX):
case String(goog.dom.TagName.KEYGEN):
case String(goog.dom.TagName.LINK):
case String(goog.dom.TagName.NOFRAMES):
case String(goog.dom.TagName.NOSCRIPT):
case String(goog.dom.TagName.META):
case String(goog.dom.TagName.OBJECT):
case String(goog.dom.TagName.PARAM):
case String(goog.dom.TagName.SCRIPT):
case String(goog.dom.TagName.SOURCE):
case String(goog.dom.TagName.STYLE):
case String(goog.dom.TagName.TRACK):
case String(goog.dom.TagName.WBR):
return false;
}
return true;
};
/**
* Appends a child to a node.
* @param {Node} parent Parent.
* @param {Node} child Child.
*/
goog.dom.appendChild = function(parent, child) {
parent.appendChild(child);
};
/**
* Appends a node with text or other nodes.
* @param {!Node} parent The node to append nodes to.
* @param {...goog.dom.Appendable} var_args The things to append to the node.
* If this is a Node it is appended as is.
* If this is a string then a text node is appended.
* If this is an array like object then fields 0 to length - 1 are appended.
*/
goog.dom.append = function(parent, var_args) {
goog.dom.append_(goog.dom.getOwnerDocument(parent), parent, arguments, 1);
};
/**
* Removes all the child nodes on a DOM node.
* @param {Node} node Node to remove children from.
*/
goog.dom.removeChildren = function(node) {
// Note: Iterations over live collections can be slow, this is the fastest
// we could find. The double parenthesis are used to prevent JsCompiler and
// strict warnings.
var child;
while ((child = node.firstChild)) {