<?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>24246</bug_id>
          
          <creation_ts>2014-01-08 23:35:29 +0000</creation_ts>
          <short_desc>Percent-encode spaces in scheme data</short_desc>
          <delta_ts>2015-06-15 14:50:14 +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>INVALID</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="Santiago M. Mola">santi</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>rubys</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98168</commentid>
    <comment_count>0</comment_count>
    <who name="Santiago M. Mola">santi</who>
    <bug_when>2014-01-08 23:35:29 +0000</bug_when>
    <thetext>Gecko does percent-encode spaces in scheme data. Blink does not. W3C&apos;s web-platform-tests expect them to be encoded.

Why does the spec doesn&apos;t percent encode them? Isn&apos;t it better to be on the safe side?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98255</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-01-10 11:40:43 +0000</bug_when>
    <thetext>Is space the only difference?

It seems my reference implementation is a bit different here too: https://github.com/annevk/url/blob/master/url.js It only has two escape methods...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98499</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-01-15 13:56:25 +0000</bug_when>
    <thetext>WebKit, Blink, and Trident do not escape them.

Can you explain how it would be safer to escape them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102296</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-03-13 07:14:24 +0000</bug_when>
    <thetext>FYI https://github.com/w3c/web-platform-tests/pull/767</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102313</commentid>
    <comment_count>4</comment_count>
    <who name="Santiago M. Mola">santi</who>
    <bug_when>2014-03-13 19:34:42 +0000</bug_when>
    <thetext>I have no point for or against percent-encoding spaces here. I probably opened this issue because of the discrepancy with web-platform-tests and Gecko.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115959</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-12-05 00:38:08 +0000</bug_when>
    <thetext>Given that Santiago likely opened this due to a test discrepancy, I&apos;d suggest closing this as WONTFIX, for the reason that Anne said: WebKit, Blink, and Trident don&apos;t escape them:

https://url.spec.whatwg.org/interop/urltest-results/bf8630587b

Note: I&apos;d also suggest that we either change that test or add another one, as IE treats a one character scheme as a drive letter.

https://url.spec.whatwg.org/reference-implementation/liveview.html can be used to explore browser behavior (that&apos;s how I verified IE&apos;s behavior with a multi-character scheme).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120994</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-15 14:50:14 +0000</bug_when>
    <thetext>The test seems fine. IE should simply be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>