//var node holds a Node Object if (node.nodeType == 3) //if text var content = node.nodeValue; content.appendData(" !");