Bug 11655

Summary: URIs not correctly handled in XHTML document anchor tags
Product: WebKit Reporter: J Ross Nicoll <jrn2005>
Component: XMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap
Priority: P2    
Version: 419.x   
Hardware: Mac   
OS: OS X 10.4   
URL: http://bowmore.cs.st-andrews.ac.uk/safari_ampersand_bug.xhtml

J Ross Nicoll
Reported 2006-11-20 08:33:55 PST
In XHTML documents, Safari doesn't correctly handle ampersands in the href attribute of anchor tags. If ampersands are encoded (which, from what I can tell of the XHTML and XML specs, is strictly speaking wrong, but nevermind) into &amp;, Safari converts them to &#38; in the final URL. So (see the URL given for an example), the URL http://127.0.0.1/&notarealurl becomes http://127.0.0.1/&#38;notarealurl . This might be correct behaviour according to the spec, however not encoding the ampersand results in an error (see the second page, http://bowmore.cs.st-andrews.ac.uk/safari_ampersand_bug2.xhtml ) instead. As such, it appears there's no way of using URLs with ampersands in them, in XHTML pages, under Safari!
Attachments
Alexey Proskuryakov
Comment 1 2006-11-21 13:04:06 PST
*** This bug has been marked as a duplicate of 3861 ***
Note You need to log in before you can comment on or make changes to this bug.