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

Issue 1866052: [Caja] Loosely parsing text "&#8224" as "†" (Closed)

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

Description

Adding functionality in caja to be able to do more lenient parsing and converting text "&#8224" to "†".

Patch Set 1 #

Patch Set 2 : fixing_test #

Total comments: 2

Patch Set 3 : updating_Test #

Patch Set 4 : reverting_build_xml #

Total comments: 4

Patch Set 5 : addressing_mikes_comments #

Patch Set 6 : addressing_mikes_comments #

Patch Set 7 : fixing_regexp #

Patch Set 8 : fixing_regex_again #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -0 lines) Patch
M src/com/google/caja/parser/html/Html5ElementStack.java View 1 2 3 4 5 6 7 2 chunks +29 lines, -0 lines 0 comments Download
A tests/com/google/caja/parser/html/Html5ElementStackTest.java View 1 2 3 4 5 6 7 1 chunk +96 lines, -0 lines 3 comments Download

Messages

Total messages: 13
anupama.dutta
http://codereview.appspot.com/1866052/diff/2001/3001 File tests/com/google/caja/parser/html/Html5ElementStackTest.java (right): http://codereview.appspot.com/1866052/diff/2001/3001#newcode59 tests/com/google/caja/parser/html/Html5ElementStackTest.java:59: "Hello &#8224 World", HtmlTokenType.TEXT, FilePosition.UNKNOWN); Adding another text snippet ...
15 years, 10 months ago (2010-08-09 11:14:47 UTC) #1
gagan.goku
http://codereview.appspot.com/1866052/diff/2001/3001 File tests/com/google/caja/parser/html/Html5ElementStackTest.java (right): http://codereview.appspot.com/1866052/diff/2001/3001#newcode59 tests/com/google/caja/parser/html/Html5ElementStackTest.java:59: "Hello &#8224 World", HtmlTokenType.TEXT, FilePosition.UNKNOWN); On 2010/08/09 11:14:47, anupama.dutta ...
15 years, 10 months ago (2010-08-09 12:11:30 UTC) #2
Kuntal Loya
http://codereview.appspot.com/1866052/diff/9001/10002 File src/com/google/caja/parser/html/Html5ElementStack.java (right): http://codereview.appspot.com/1866052/diff/9001/10002#newcode523 src/com/google/caja/parser/html/Html5ElementStack.java:523: return text.replaceAll("(\\b|\\B)(&#\\d{2,4});?", "$2;"); Is \b|\B required? Btw, there can ...
15 years, 10 months ago (2010-08-09 19:12:38 UTC) #3
MikeSamuel
http://codereview.appspot.com/1866052/diff/9001/10002 File src/com/google/caja/parser/html/Html5ElementStack.java (right): http://codereview.appspot.com/1866052/diff/9001/10002#newcode523 src/com/google/caja/parser/html/Html5ElementStack.java:523: return text.replaceAll("(\\b|\\B)(&#\\d{2,4});?", "$2;"); On 2010/08/09 19:12:38, Kuntal Loya wrote: ...
15 years, 10 months ago (2010-08-09 19:34:49 UTC) #4
gagan.goku
http://codereview.appspot.com/1866052/diff/9001/10002 File src/com/google/caja/parser/html/Html5ElementStack.java (right): http://codereview.appspot.com/1866052/diff/9001/10002#newcode523 src/com/google/caja/parser/html/Html5ElementStack.java:523: return text.replaceAll("(\\b|\\B)(&#\\d{2,4});?", "$2;"); On 2010/08/09 19:12:38, Kuntal Loya wrote: ...
15 years, 10 months ago (2010-08-10 09:11:43 UTC) #5
anupama.dutta
Good tests :) LGTM.
15 years, 10 months ago (2010-08-10 09:21:58 UTC) #6
Kuntal Loya
http://codereview.appspot.com/1866052/diff/26001/27001 File tests/com/google/caja/parser/html/Html5ElementStackTest.java (right): http://codereview.appspot.com/1866052/diff/26001/27001#newcode91 tests/com/google/caja/parser/html/Html5ElementStackTest.java:91: + "&#xaaaaaaa &#123a &#123"; expected for &#123a should be ...
15 years, 10 months ago (2010-08-10 09:58:50 UTC) #7
Kuntal Loya
LGTM http://codereview.appspot.com/1866052/diff/26001/27001 File tests/com/google/caja/parser/html/Html5ElementStackTest.java (right): http://codereview.appspot.com/1866052/diff/26001/27001#newcode91 tests/com/google/caja/parser/html/Html5ElementStackTest.java:91: + "&#xaaaaaaa &#123a &#123"; On 2010/08/10 09:58:50, Kuntal ...
15 years, 10 months ago (2010-08-10 10:01:21 UTC) #8
gagan.goku
Thanks Anupama, Kuntal for the review. http://codereview.appspot.com/1866052/diff/26001/27001 File tests/com/google/caja/parser/html/Html5ElementStackTest.java (right): http://codereview.appspot.com/1866052/diff/26001/27001#newcode91 tests/com/google/caja/parser/html/Html5ElementStackTest.java:91: + "&#xaaaaaaa &#123a ...
15 years, 10 months ago (2010-08-10 10:02:44 UTC) #9
gagan.goku
On 2010/08/10 10:02:44, gagan.goku wrote: > Thanks Anupama, Kuntal for the review. > > http://codereview.appspot.com/1866052/diff/26001/27001 ...
15 years, 10 months ago (2010-08-11 18:37:53 UTC) #10
MikeSamuel
http://codereview.appspot.com/1978041/show is a caja patch that does do entity fixup for numeric entities and known ...
15 years, 10 months ago (2010-08-12 03:37:09 UTC) #11
gagan.goku
Took a look at your change, it looks nice :) I just have small comments ...
15 years, 10 months ago (2010-08-12 09:03:57 UTC) #12
gagan.goku
15 years, 10 months ago (2010-08-28 03:27:47 UTC) #13
Closing this patch for now as http://codereview.appspot.com/1978041/show  is
supposed to take care of this issue.
Sign in to reply to this message.

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