Sorry to have mislead you earlier.
http://gwt-code-reviews.appspot.com/771801/diff/25001/26010 File user/src/com/google/gwt/safehtml/shared/UriUtils.java (right): http://gwt-code-reviews.appspot.com/771801/diff/25001/26010#newcode62 user/src/com/google/gwt/safehtml/shared/UriUtils.java:62: String scheme = extractScheme(uri); On 2010/08/20 17:22:45, pdr wrote:
I do not think this a problem for us. When we go to javascript, we end
up using
javascript's toLowerCase(), which just does a character mapping
(ignoring
locale... I->i.) Because the mailto string must be in ascii, "maılto:"
(with the
Turkish 'ı') would be correctly rejected. Javascript has a special
method for
locale-specific case conversion: toLocaleLowerCase(), unlike Java,
where
toLowerCase() considers locale. Given this, I think we can leave the
current
method.
According to the EcmaScript spec - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf page 149, 15.5.4.16 - it says that the result must be according the UCD, specifically including SpecialCasings.txt which is where the locale-specific mappings are. So, there may be browsers that don't implement it properly, but it sounds unsafe to do so. http://gwt-code-reviews.appspot.com/771801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
