Bug 22899
Summary: | HTMLAnchorElement.pathname returns decoded attribute | ||
---|---|---|---|
Product: | WebKit | Reporter: | Michiel Roding <michiel> |
Component: | DOM | Assignee: | Erik Arvidsson <arv> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap, arv, dpopa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
URL: | http://home.react.nl/~michiel/webkit-pathname-bug.html |
Michiel Roding
If an anchor's href contains encoded characters, reading the anchor's pathname returns a decoded path.
Firefox and IE return the 'raw' version (thus with %.. in the string) whereas webkit returns a decoded path. Opera returns a decoded path as well.
As a sidenote, IE6 returns a decoded href-attribute as well.
I assume that fetching the attribute of an element returns the actual value, not a modified value.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dan POPA
This issue reproduces in Safari 3 and 4 on Mac and Win.
It doesn't reproduce in Chrome 2.0.172.37 and 3.0.193.2.
Erik Arvidsson
Fixed in http://trac.webkit.org/changeset/96779
*** This bug has been marked as a duplicate of bug 30225 ***