Bug 22899

Summary: HTMLAnchorElement.pathname returns decoded attribute
Product: WebKit Reporter: Michiel Roding <michiel>
Component: DOMAssignee: Erik Arvidsson <arv>
Severity: Normal CC: ap, arv, dpopa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Macintosh   
OS: OS X 10.5   
URL: http://home.react.nl/~michiel/webkit-pathname-bug.html

Description Michiel Roding 2008-12-17 02:47:18 PST
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.
Comment 1 Dan POPA 2009-07-23 23:26:11 PDT
This issue reproduces in Safari 3 and 4 on Mac and Win.
It doesn't reproduce in Chrome and
Comment 2 Erik Arvidsson 2011-10-06 13:22:20 PDT
Fixed in http://trac.webkit.org/changeset/96779

*** This bug has been marked as a duplicate of bug 30225 ***