Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(129)

Issue 130076: Issue 1102: document.write support for DOMita (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 5 months ago by MikeSamuel
Modified:
16 years, 5 months ago
Reviewers:
felix8a, metaweta
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

A simple document.write implementation that uses the sax parser in the HTML sanitizer, and the element/attribute sanitizing code from DOMita's attribute sanitizer. Submitted @3802

Patch Set 1 #

Total comments: 9

Patch Set 2 : Issue 1102: document.write support for DOMita #

Total comments: 12

Patch Set 3 : Issue 1102: document.write support for DOMita #

Patch Set 4 : Issue 1102: document.write support for DOMita #

Patch Set 5 : Issue 1102: document.write support for DOMita #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -44 lines) Patch
M src/com/google/caja/plugin/bridal.js View 1 2 chunks +18 lines, -0 lines 0 comments Download
M src/com/google/caja/plugin/domita.js View 1 2 3 4 4 chunks +36 lines, -34 lines 0 comments Download
M src/com/google/caja/plugin/html-emitter.js View 1 2 3 5 chunks +111 lines, -1 line 0 comments Download
M src/com/google/caja/plugin/html-sanitizer.js View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 1 2 4 chunks +37 lines, -4 lines 0 comments Download
M tests/com/google/caja/plugin/templates/TemplateCompilerTest.java View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 11
MikeSamuel
16 years, 5 months ago (2009-10-14 04:26:12 UTC) #1
metaweta
http://codereview.appspot.com/130076/diff/1/7 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/130076/diff/1/7#newcode350 Line 350: ' ', attribs[i], '="', html.escapeAttrib(attribs[i + 1]), '"'); ...
16 years, 5 months ago (2009-10-15 02:46:22 UTC) #2
MikeSamuel
http://codereview.appspot.com/130076/diff/1/7 File src/com/google/caja/plugin/bridal.js (right): http://codereview.appspot.com/130076/diff/1/7#newcode350 Line 350: ' ', attribs[i], '="', html.escapeAttrib(attribs[i + 1]), '"'); ...
16 years, 5 months ago (2009-10-15 04:57:30 UTC) #3
MikeSamuel
snapshotted
16 years, 5 months ago (2009-10-15 18:47:20 UTC) #4
felix8a
http://codereview.appspot.com/130076/diff/19/24 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/130076/diff/19/24#newcode799 Line 799: // Swap last attribute name/value pair in place, ...
16 years, 5 months ago (2009-10-15 19:39:57 UTC) #5
MikeSamuel
http://codereview.appspot.com/130076/diff/19/23 File src/com/google/caja/plugin/html-emitter.js (right): http://codereview.appspot.com/130076/diff/19/23#newcode220 Line 220: var isLimitClosed = detached[0].parentNode !== limit; Good point. ...
16 years, 5 months ago (2009-10-15 20:19:52 UTC) #6
MikeSamuel
http://codereview.appspot.com/130076/diff/19/24 File src/com/google/caja/plugin/domita.js (right): http://codereview.appspot.com/130076/diff/19/24#newcode799 Line 799: // Swap last attribute name/value pair in place, ...
16 years, 5 months ago (2009-10-15 20:22:30 UTC) #7
felix8a
http://codereview.appspot.com/130076/diff/19/23 File src/com/google/caja/plugin/html-emitter.js (right): http://codereview.appspot.com/130076/diff/19/23#newcode291 Line 291: if ((eltype & html4.eflags.UNSAFE) !== 0) { return; ...
16 years, 5 months ago (2009-10-15 20:23:45 UTC) #8
felix8a
lgtm
16 years, 5 months ago (2009-10-15 20:33:35 UTC) #9
MikeSamuel
Will wait for feedback from Mike Stay.
16 years, 5 months ago (2009-10-15 20:42:15 UTC) #10
metaweta
16 years, 5 months ago (2009-10-15 21:14:41 UTC) #11
On 2009/10/15 20:42:15, MikeSamuel wrote:
> Will wait for feedback from Mike Stay.

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b