<?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>140080</bug_id>
          
          <creation_ts>2015-01-05 07:08:46 -0800</creation_ts>
          <short_desc>Location object attributes shouldn&apos;t be decoded?</short_desc>
          <delta_ts>2023-12-29 03:14:01 -0800</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></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="Jonathan Zuckerman">j.zuckerman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>kandalkar.abhijeet58</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1058705</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Zuckerman">j.zuckerman</who>
    <bug_when>2015-01-05 07:08:46 -0800</bug_when>
    <thetext>I might be making some leaps here, or using terminology wrongly, but I think the correct behavior for the Location object is to return a valid URI or URI components in the Location object attributes,

&quot;The value of the href attribute MUST be the absolute URI reference&quot;
http://www.w3.org/TR/Window/#location

and the percent character by itself (not as part of a uri-encoded octet) is not a valid character in a uri,

&quot;Because the percent &quot;%&quot; character always has the reserved purpose of being the escape indicator, it must be escaped as &quot;%25&quot; in order to be used as data within a URI.&quot;
https://www.ietf.org/rfc/rfc2396.txt (page 9)

Currently `location.href` will return a decoded version of the url (percent-encoded values will be decoded), is this the correct behavior according to the standards?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002211</commentid>
    <comment_count>1</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-12-29 03:14:01 -0800</bug_when>
    <thetext>That&apos;s not correct, but that&apos;s also no longer happening.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>