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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26398</bug_id>
          
          <creation_ts>2014-07-21 14:04:15 +0000</creation_ts>
          <short_desc>application/x-www-form-urlencoded serializer overly precent-encoding?</short_desc>
          <delta_ts>2015-08-14 16:56:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>URL</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Sapin">simon.sapin</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>rubys</cc>
    
    <cc>simon.sapin</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109132</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2014-07-21 14:04:15 +0000</bug_when>
    <thetext>Aside from the space/plus sign mapping, http://url.spec.whatwg.org/#concept-urlencoded-byte-serializer percent-encodes bytes corresponding to the following ASCII non-control characters:

!&quot;#$%&amp;\&apos;()+,/:;&lt;=&gt;?@[\]^`{|}

This seems more than necessary. I believe these should be enough:

&quot;#&amp;&lt;=&gt;`

That is, those encoded in the URL parser’s query state, and &amp;= which are the only significant characters in application/x-www-form-urlencoded.

Is there a reason I’m missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109316</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-07-27 11:24:35 +0000</bug_when>
    <thetext>Are you saying existing implementations are not following the specification?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109319</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2014-07-27 12:13:36 +0000</bug_when>
    <thetext>Right, I forgot to leave my sense of logic art the door. I&apos;ll do some testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121004</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-15 16:36:14 +0000</bug_when>
    <thetext>I think ideally we align this with the query state from the URL parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122614</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-14 13:14:58 +0000</bug_when>
    <thetext>But also, ideally we first make HTML use this algorithm rather than its own. (They&apos;re currently identical, I would not want them to get out of sync before we join them.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122619</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-14 16:56:17 +0000</bug_when>
    <thetext>I found that we also have https://github.com/whatwg/url/issues/18 and since GitHub is now preferred I&apos;m going to mark this bug MOVED. Thank you for reporting this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>