http://codereview.appspot.com/88118/diff/1/3
File src/com/google/caja/lexer/escaping/UriUtil.java (right):
http://codereview.appspot.com/88118/diff/1/3#newcode103
Line 103: if (path.length() != 0 || authority != null) {
Checking whether the authority is null is not the right way to check
whether a URL is opaque. That depends on the scheme.
Can we assume that it is opaque iff if the scheme is in a set of known
opaque URL schemes?
Maybe construct a case-insensitive TreeSet<String> containing ("mailto",
"data", "javascript").
http://codereview.appspot.com/88118