rem: var newValue = new String(node.attributes[i].value).replace(replacement); 
add: var newValue = new String(node.attributes[i].value).replace(placeholderRegExp, replacement); 
context: function xformsStringReplaceWorker(node, placeholderRegExp, replacement) {    switch (node.nodeType) {        case ELEMENT_TYPE:            for (var i = 0; i < node.attributes.length; i++) {                var newValue = new String(node.attributes[i].value).replace(replacement);                if (newValue != node.attributes[i].value)                    node.setAttribute(node.attributes[i].name, newValue);            }            for (var i = 0; i < node.childNodes.length; i++)                xformsStringReplaceWorker(node.childNodes[i], placeholderRegExp, replacement);            break;        case TEXT_TYPE:            var newValue = new String(node.nodeValue).replace(replacement);            if (newValue != node.nodeValue)                node.nodeValue = newValue;            break;    }}
meta: 5390	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5390/a7ec91cb5cae8ecb1be73877d3ca1b4783d639cd/xforms.js/clean/src/examples/web/ops/javascript/xforms.js