[webkit-dev] Ampersand escaping in HTML URL

Boyd Waters bwaters at nrao.edu
Thu Nov 10 14:56:36 PST 2005

HTTP URLs pass parameters in GET requests by appending name=value  
pairs to the URL, separated by the ampersand character.

XHTML Strict does not permit the ampersand character, but rather  
requires an 'escaped' entity reference & followed by a-m-p-semicolon:  

Safari version 2.0.2 (416.12) passes this in the URL as the Unicode  
entity & -- & followed by hash-three-eight-semicolon.

The Tomcat servlet container blows this off; the Java JDK 1.5.0_05  
does not interpret such a string as a valid URL query parameter.

Safari with WebKit via today's (10-Nov-2005) CVS does NOT have this  

Mozilla, FireFox, and Camino likewise do not pass this entity in the  
URL, but rather pass the "bare" ampersand character, which is the  
correct behavior.


Looks like it is fixed with the WebKit in CVS.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProblemHTML-URL.xml
Type: text/xml
Size: 480 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/webkit-dev/attachments/20051110/3f4d85a2/ProblemHTML-URL.xml

More information about the webkit-dev mailing list