rem: var text = new String(node.value); return text.replace(new RegExp("placeholder", "g"), replacement); } 
add: var stringText = new String(text); return stringText.replace(placeholderRegExp, replacement); } 
context:     function replace(text) {        var text = new String(node.value);        return text.replace(new RegExp("placeholder", "g"), replacement);    }
meta: 5390	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5390/4c60852e55587e10b08d8f0308561a8dcf2376bd/xforms.js/buggy/src/examples/web/oxf-theme/javascript/xforms.js