Bug 11655
| Summary: | URIs not correctly handled in XHTML document anchor tags | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | J Ross Nicoll <jrn2005> |
| Component: | XML | Assignee: | 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
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 &, Safari converts them to & in the final URL. So (see the URL given for an example), the URL http://127.0.0.1/¬arealurl becomes http://127.0.0.1/&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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** This bug has been marked as a duplicate of 3861 ***