http://codereview.appspot.com/98080/diff/1/2 File src/com/google/caja/opensocial/DefaultGadgetRewriter.java (right): http://codereview.appspot.com/98080/diff/1/2#newcode184 Line 184: scriptElement.appendChild(doc.createTextNode(script.toString())); On 2009/07/31 00:54:52, MikeSamuel wrote:
This doesn't look right. It looks like script.toString() will always return the empty string.
You're right - left over cruft. scriptElement already has all the content - this was adding an empty string to the result. Snapshot http://codereview.appspot.com/98080
