code: function processTextNodes(node, messages) {
  		processNodes(node, function(targetNode, matches, attribute) {
  			var replaceText = messages[matches[1]] || matches[1];
  			if (targetNode.nodeType === 3) { // TEXT_NODE
  				targetNode.parentNode.replaceChild(document.createTextNode(replaceText), targetNode);
  			} else if (targetNode.nodeType === 1 && attribute) { // ELEMENT_NODE
  				targetNode.setAttribute(attribute, replaceText); //$NON-NLS-0$
  			}
  		});
  	}
docs: Performs substitution of strings into textContent within the given node and its descendants. An occurrence of <code>${n}</code>
  in text content will be replaced with the string <code>messages[n]</code>.
  <p>This function is recommended for binding placeholder text in template-created DOM elements to actual display strings.</p>
  @name orion.webui.littlelib.processTextNodes
  @function
  @param {Node} node The node to perform replacement under.
  @param {String[]} messages The replacement strings.