If you run http://www.geocities.com/SiliconValley/Park/9967/atari.html
in the standalone (using gcjappletviewer), you will notice one of the
applets is not loaded. The problem is the codebase for the applet is
being parsed to "http:" instead of the entire url.
Hello, Lillian,
I did not expected that the unquoted parameter value may contain slash.
This is simple to fix. As far as I checked there are no regressions from
this change, let me known if they are.
2006-04-25 Audrius Meskauskas <[EMAIL PROTECTED]>
* gnu/javax/swing/text/html/parser/support/Parser.java (readAttributes):
Allow slashes (/) in the unquoted parameter value.
Index: Parser.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/javax/swing/text/html/parser/support/Parser.java,v
retrieving revision 1.3
diff -u -r1.3 Parser.java
--- Parser.java 2 Jul 2005 20:32:15 -0000 1.3
+++ Parser.java 25 Apr 2006 14:51:22 -0000
@@ -978,8 +978,23 @@
error("The value without opening quote is closed with '" +
next.getImage() + "'"
);
+ attrValue = value.getImage();
}
- attrValue = value.getImage();
+ else if (next.kind == SLASH)
+ // The slash in this context is treated as the ordinary
+ // character, not as a token. The slash may be part of
+ // the unquoted URL.
+ {
+ StringBuffer image = new StringBuffer(value.getImage());
+ while (next.kind == NUMTOKEN || next.kind == SLASH)
+ {
+ image.append(getNextToken().getImage());
+ next = getTokenAhead();
+ }
+ attrValue = image.toString();
+ }
+ else
+ attrValue = value.getImage();
break;
default :