function processDOMNodes(node, replaceNodes) {
		processNodes(node, function(targetNode, matches) {
			var replaceNode = replaceNodes[matches[1]];
			if (replaceNode) {
				var range = document.createRange();
				var start = matches.index;
				range.setStart(targetNode, start);
				range.setEnd(targetNode, start + matches[0].length);
				range.deleteContents();
				range.insertNode(replaceNode);
			}
		});
	}
/**
	 * Performs substitution of DOM nodes into textContent within the given node and its descendants. An occurrence of <code>${n}</code>
	 * in text content will be replaced by the DOM node <code>replaceNodes[n]</code>.
	 * <p>This function is recommended for performing rich-text replacement within a localized string. The use of actual DOM nodes
	 * avoids the need for embedded HTML in strings.</p>
	 * @name orion.webui.littlelib.processDOMNodes
	 * @function
	 * @param {Node} node The node to perform replacement under.
	 * @param {Node[]} replaceNodes The replacement nodes.
	 */
Performs substitution of DOM nodes into textContent within the given node and its descendants. An occurrence of ${n}
in text content will be replaced by the DOM node replaceNodes[n].
This function is recommended for performing rich-text replacement within a localized string. The use of actual DOM nodes
avoids the need for embedded HTML in strings.
@name orion.webui.littlelib.processDOMNodes
@function
@param {Node} node The node to perform replacement under.
@param {Node[]} replaceNodes The replacement nodes.
Performs substitution of DOM nodes into textContent within the given node and its descendants . An occurrence of $ { n } in text content will be replaced by the DOM node replaceNodes [ n ] . This function is recommended for performing rich - text replacement within a localized string . The use of actual DOM nodes avoids the need for embedded HTML in strings . @name orion . webui . littlelib . processDOMNodes @function @param { Node } node The node to perform replacement under . @param { Node [] } replaceNodes The replacement nodes .
function processDOMNodes(node, replaceNodes) {
		processNodes(node, function(targetNode, matches) {
			var replaceNode = replaceNodes[matches[1]];
			if (replaceNode) {
				var range = document.createRange();
				var start = matches.index;
				range.setStart(targetNode, start);
				range.setEnd(targetNode, start + matches[0].length);
				range.deleteContents();
				range.insertNode(replaceNode);
			}
		});
	}
function processDOMNodes ( node , replaceNodes ) { processNodes ( node , function ( targetNode , matches ) { var replaceNode = replaceNodes [ matches [ 1 ] ] ; if ( replaceNode ) { var range = document . createRange ( ) ; var start = matches . index ; range . setStart ( targetNode , start ) ; range . setEnd ( targetNode , start + matches [ 0 ] . length ) ; range . deleteContents ( ) ; range . insertNode ( replaceNode ) ; } } ) ; }
Performs substitution of DOM nodes into textContent within the given node and its descendants.
Performs substitution of DOM nodes into textContent within the given node and its descendants .