<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22899</bug_id>
          
          <creation_ts>2008-12-17 02:47:18 -0800</creation_ts>
          <short_desc>HTMLAnchorElement.pathname returns decoded attribute</short_desc>
          <delta_ts>2011-10-06 13:22:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>30225</dup_id>
          
          <bug_file_loc>http://home.react.nl/~michiel/webkit-pathname-bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michiel Roding">michiel</reporter>
          <assigned_to name="Erik Arvidsson">arv</assigned_to>
          <cc>ap</cc>
    
    <cc>arv</cc>
    
    <cc>dpopa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102761</commentid>
    <comment_count>0</comment_count>
    <who name="Michiel Roding">michiel</who>
    <bug_when>2008-12-17 02:47:18 -0800</bug_when>
    <thetext>If an anchor&apos;s href contains encoded characters, reading the anchor&apos;s pathname returns a decoded path.

Firefox and IE return the &apos;raw&apos; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134389</commentid>
    <comment_count>1</comment_count>
    <who name="Dan POPA">dpopa</who>
    <bug_when>2009-07-23 23:26:11 -0700</bug_when>
    <thetext>This issue reproduces in Safari 3 and 4 on Mac and Win.
It doesn&apos;t reproduce in Chrome 2.0.172.37 and 3.0.193.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479418</commentid>
    <comment_count>2</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2011-10-06 13:22:20 -0700</bug_when>
    <thetext>Fixed in http://trac.webkit.org/changeset/96779

*** This bug has been marked as a duplicate of bug 30225 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>