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

Issue 10061: Fix identifier normalization to work under JDK1.5 (Closed)

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

Description

Most browsers that have a Sun Java plugin with JRE1.5. My recent changes to ParserBase to check that identifiers are properly normalized use APIs added only in JRE1.6. This consolidates the normalized identifier checks, so that they work in reduced mode on JRE1.5. Any identifiers rejected under JRE1.6 will be rejected under JRE1.5, but so will any identifiers containing a non-ASCII codepoint.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -3 lines) Patch
M src/com/google/caja/parser/ParserBase.java View 1 chunk +25 lines, -3 lines 3 comments Download

Messages

Total messages: 6
MikeSamuel
17 years, 4 months ago (2008-12-06 22:40:53 UTC) #1
MarkM
LGTM
17 years, 4 months ago (2008-12-06 22:48:14 UTC) #2
MikeSamuel
@3100
17 years, 4 months ago (2008-12-06 22:55:13 UTC) #3
DavidSarah
http://codereview.appspot.com/10061/diff/1/2 File src/com/google/caja/parser/ParserBase.java (right): http://codereview.appspot.com/10061/diff/1/2#newcode180 Line 180: if (s.charAt(i) >= 127) { return false; } ...
17 years, 4 months ago (2008-12-07 01:57:31 UTC) #4
MikeSamuel
http://codereview.appspot.com/10061/diff/1/2 File src/com/google/caja/parser/ParserBase.java (right): http://codereview.appspot.com/10061/diff/1/2#newcode180 Line 180: if (s.charAt(i) >= 127) { return false; } ...
17 years, 4 months ago (2008-12-07 02:16:28 UTC) #5
DavidSarah
17 years, 4 months ago (2008-12-07 03:28:12 UTC) #6
http://codereview.appspot.com/10061/diff/1/2
File src/com/google/caja/parser/ParserBase.java (right):

http://codereview.appspot.com/10061/diff/1/2#newcode180
Line 180: if (s.charAt(i) >= 127) { return false; }
From http://unicode.org/reports/tr15/ :

Legacy character sets are classified into three categories based on their
normalization behavior with accepted transcoders.

Prenormalized. Any string in the character set is already in Normalization Form
X.
For example, ISO 8859-1 is prenormalized in NFC.
Sign in to reply to this message.

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