http://codereview.appspot.com/157093/diff/1/2
File tests/com/google/caja/plugin/domita_test.html (right):

http://codereview.appspot.com/157093/diff/1/2#newcode69
tests/com/google/caja/plugin/domita_test.html:69: s.text =
'globalSideEffect()';
ah.  OK

http://codereview.appspot.com/157093/diff/1/3
File tests/com/google/caja/plugin/domita_test_untrusted.html (right):

http://codereview.appspot.com/157093/diff/1/3#newcode119
tests/com/google/caja/plugin/domita_test_untrusted.html:119: <p>After
<code>document.write</code></p>
OK.  So IE just has different trailing whitespace in the HTML output.
What if your normalization was, instead of /[\r\n]\s*/g, something that
trimmed as well: /(?:^|[\r\n])\s*|\s+$/g?

http://codereview.appspot.com/157093/diff/1/3#newcode1014
tests/com/google/caja/plugin/domita_test_untrusted.html:1014: var html =
el.innerHTML.replace(new RegExp('[\\r\\n]\\s*', 'g'), '');
Cool.  I'm fine with that.

http://codereview.appspot.com/157093/diff/1/3#newcode1828
tests/com/google/caja/plugin/domita_test_untrusted.html:1828:
//assertArray([9], Array.slice([9], null, void 0), '([9], null, void
0)');
thanks

http://codereview.appspot.com/157093

Reply via email to