| javascript Programming Glossary: element.childnodesFind all instances of 'old' in a webpage and replace each with 'new', using a javascript bookmarklet http://stackoverflow.com/questions/1175775/find-all-instances-of-old-in-a-webpage-and-replace-each-with-new-using-a-ja  a b element if element element document.body var nodes element.childNodes for var n 0 n nodes.length n if nodes n .nodeType Node.TEXT_NODE.. a b element if element element document.body var nodes element.childNodes for var n 0 n nodes.length n if nodes n .nodeType Node.TEXT_NODE.. 
 Map HTML to JSON http://stackoverflow.com/questions/12980648/map-html-to-json  element object object type element.nodeName var nodeList element.childNodes if nodeList null  if nodeList.length  object content  for var.. 
 In JavaScript, how can I replace text in an HTML page without affecting the tags? http://stackoverflow.com/questions/1444409/in-javascript-how-can-i-replace-text-in-an-html-page-without-affecting-the-tags  may increase length of child node list. for var i element.childNodes.length i 0 var child element.childNodes i if child.nodeType.. list. for var i element.childNodes.length i 0 var child element.childNodes i if child.nodeType 1 ELEMENT_NODE var tag child.nodeName.toLowerCase.. 
 How can I use jQuery to style /parts/ of all instances of a specific word? http://stackoverflow.com/questions/1501007/how-can-i-use-jquery-to-style-parts-of-all-instances-of-a-specific-word  function findText element pattern callback for var childi element.childNodes.length childi 0 var child element.childNodes childi if child.nodeType.. var childi element.childNodes.length childi 0 var child element.childNodes childi if child.nodeType 1  findText child pattern callback.. 
 Remove whitespace and line breaks between HTML elements using jQuery http://stackoverflow.com/questions/1539367/remove-whitespace-and-line-breaks-between-html-elements-using-jquery  function element element element for var i 0 i element.childNodes.length i var node element.childNodes i if node.nodeType 3 S.. element for var i 0 i element.childNodes.length i var node element.childNodes i if node.nodeType 3 S .test node.nodeValue Element.remove node.. 
 Difference between HTMLCollection, NodeLists, and arrays of objects http://stackoverflow.com/questions/15763358/difference-between-htmlcollection-nodelists-and-arrays-of-objects  multiple nodes or getting a reference to all children element.childNodes . For more information have a look at DOM4 specification Collections.. 
 jQuery find/replace without changing original text http://stackoverflow.com/questions/4060056/jquery-find-replace-without-changing-original-text  function findText element pattern callback for var childi element.childNodes.length childi 0 var child element.childNodes childi if child.nodeType.. var childi element.childNodes.length childi 0 var child element.childNodes childi if child.nodeType 1  var tag child.tagName.toLowerCase.. 
 jQuery selector for an element that directly contains text? http://stackoverflow.com/questions/7896455/jquery-selector-for-an-element-that-directly-contains-text  walk ancestor return elements function walk element var n element.childNodes.length for var i 0 i n i  var child element.childNodes i if.. n element.childNodes.length for var i 0 i n i  var child element.childNodes i if child.nodeType 3 child.data.indexOf text 1  elements.push.. element  break   for var i 0 i n i  var child element.childNodes i if child.nodeType 1  walk child    share improve this answer.. 
 |