<?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>23958</bug_id>
          
          <creation_ts>2013-12-02 20:19:38 +0000</creation_ts>
          <short_desc>Percent-decode on non-ASCII input</short_desc>
          <delta_ts>2014-01-14 16:11:34 +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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96982</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2013-12-02 20:19:38 +0000</bug_when>
    <thetext>http://url.spec.whatwg.org/#host-parsing

[[
Let host be the result of running utf-8&apos;s decoder on the percent decoding of input. 
]]

Percent decoding is defined for &quot;a string using code points in the range U+0000 to U+007F&quot;, but there is not guarantee that input does not contain other code points at that point of host parsing.

What happens to non-ASCII code points?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97034</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-12-03 13:14:40 +0000</bug_when>
    <thetext>How do you get non-ASCII there?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97036</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2013-12-03 13:29:18 +0000</bug_when>
    <thetext>new URL(&apos;http://☃/&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97037</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-12-03 13:33:32 +0000</bug_when>
    <thetext>So one option would be to percent escape during the host name state. But that is not the only entry point to the host parser. Hmm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97144</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2013-12-04 19:01:36 +0000</bug_when>
    <thetext>The host parser should UTF8-percent-encode, just before it percent-decodes in step 3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98429</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-01-14 16:11:34 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/3cfaa1779bfb9a3ba2b907a5802ca0251ca9a7e6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>