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