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

Issue 4591043: Adds a release valve for CDATA content checks. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by MikeSamuel
Modified:
15 years, 4 months ago
Reviewers:
anupama.dutta, Jasvir
CC:
google-caja-discuss_googlegroups.com, cool-shindig-committers_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This addresses the issue that some Caja HTML parser clients want to render content without fixup including content with mismatched escaping text spans. The actual implementation of the fixup scheme is in the testcase but if that looks good overall, it can probably move out of tests into src. Submitted @4504

Patch Set 1 #

Patch Set 2 : Adds a release valve for CDATA content checks. #

Total comments: 2

Patch Set 3 : Adds a release valve for CDATA content checks. #

Patch Set 4 : Adds a release valve for CDATA content checks. #

Patch Set 5 : Adds a release valve for CDATA content checks. #

Patch Set 6 : Adds a release valve for CDATA content checks. #

Patch Set 7 : Adds a release valve for CDATA content checks. #

Total comments: 1

Patch Set 8 : Adds a release valve for CDATA content checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -26 lines) Patch
A src/com/google/caja/parser/html/CdataScriptContentFixer.java View 1 2 3 4 5 6 1 chunk +123 lines, -0 lines 0 comments Download
A src/com/google/caja/parser/html/MarkupFixupRenderContext.java View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
M src/com/google/caja/parser/html/Nodes.java View 1 2 3 4 5 6 7 11 chunks +47 lines, -19 lines 0 comments Download
A tests/com/google/caja/parser/html/CdataScriptContentFixerTest.java View 1 2 3 4 5 6 1 chunk +127 lines, -0 lines 0 comments Download
M tests/com/google/caja/parser/html/NodesTest.java View 1 2 3 4 5 6 7 4 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 8
MikeSamuel
15 years, 5 months ago (2011-06-07 18:11:18 UTC) #1
anupama.dutta
http://codereview.appspot.com/4591043/diff/3001/tests/com/google/caja/parser/html/NodesTest.java File tests/com/google/caja/parser/html/NodesTest.java (right): http://codereview.appspot.com/4591043/diff/3001/tests/com/google/caja/parser/html/NodesTest.java#newcode657 tests/com/google/caja/parser/html/NodesTest.java:657: RenderContext renderContext = new ScriptFixupRenderContext(cat) If I set withAsciiOnly ...
15 years, 5 months ago (2011-06-09 10:50:50 UTC) #2
MikeSamuel
http://codereview.appspot.com/4591043/diff/3001/tests/com/google/caja/parser/html/NodesTest.java File tests/com/google/caja/parser/html/NodesTest.java (right): http://codereview.appspot.com/4591043/diff/3001/tests/com/google/caja/parser/html/NodesTest.java#newcode657 tests/com/google/caja/parser/html/NodesTest.java:657: RenderContext renderContext = new ScriptFixupRenderContext(cat) On 2011/06/09 10:50:50, anupama.dutta ...
15 years, 5 months ago (2011-06-09 16:26:00 UTC) #3
anupama.dutta
LGTM.
15 years, 4 months ago (2011-06-13 01:17:03 UTC) #4
Jasvir
LGTM
15 years, 4 months ago (2011-06-13 06:47:04 UTC) #5
Jasvir
While this patch is fine as it stands, as discussed with Mike offline, this change ...
15 years, 4 months ago (2011-06-14 03:43:23 UTC) #6
anupama.dutta
On Tue, Jun 14, 2011 at 9:13 AM, <jasvir@gmail.com> wrote: > While this patch is ...
15 years, 4 months ago (2011-06-14 04:01:31 UTC) #7
Jasvir
15 years, 4 months ago (2011-06-15 00:04:37 UTC) #8
LGTM

http://codereview.appspot.com/4591043/diff/17001/src/com/google/caja/parser/h...
File src/com/google/caja/parser/html/Nodes.java (right):

http://codereview.appspot.com/4591043/diff/17001/src/com/google/caja/parser/h...
src/com/google/caja/parser/html/Nodes.java:646: } while (problemIndex != -1);
With the null break above, this appears to terminate however we may want to
consider adding a max counter on this loop.
Sign in to reply to this message.

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