<?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>10326</bug_id>
          
          <creation_ts>2010-08-09 12:30:42 +0000</creation_ts>
          <short_desc>make &quot;user:password&quot; in URLs a SYNTAX_ERR</short_desc>
          <delta_ts>2012-11-24 16:12:02 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>adrianba</cc>
    
    <cc>ap</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37301</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-08-09 12:30:42 +0000</bug_when>
    <thetext>Currently &quot;user:password&quot; is an optional feature and I would rather kill support for it entirely than leave it as such. Now it cannot be tested basically.

Can we do this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37324</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-08-09 22:33:33 +0000</bug_when>
    <thetext>How do implementations currently behave in this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37328</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-08-10 05:58:19 +0000</bug_when>
    <thetext>Webkit/Gecko both allow it. Opera prompts the user and does not let the user/password arguments of open() override it. I believe Internet Explorer does throw, but I cannot test it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37330</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-08-10 07:27:36 +0000</bug_when>
    <thetext>Turns out Internet Explorer 9 does not throw (reportedly).

I think the simplest way forward is to remove

  If the &quot;user:password&quot; format in the userinfo production
  is not supported for the relevant scheme and url contains
  this format raise a SYNTAX_ERR and terminate these steps.

from the specification and let the URL parsing specification handle the details as to whether such URLs resolve or not.

For http/https they probably ought to resolve given the implementations that support them and I will add tests to the test suite for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37336</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2010-08-10 18:37:20 +0000</bug_when>
    <thetext>IE9 doesn&apos;t support this syntax (it follows http://support.microsoft.com/kb/834489). The IE9 preview builds only demonstrate the platform and don&apos;t impose many security constraints including this one. The underlying web browser control platform makes this an option for the host application. When Internet Explorer is the host, the constraint is enforced.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61824</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-12-20 17:38:22 +0000</bug_when>
    <thetext>Adrian, sorry for not following up, does that mean IE does not support it in any URL, regardless of the scheme?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63345</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2012-01-30 18:51:12 +0000</bug_when>
    <thetext>I think we still support it for ftp://.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75957</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-10-11 10:05:43 +0000</bug_when>
    <thetext>So I guess this is really a URL &quot;bug&quot;. And about whether userinfo in an http/https URL should render it invalid. Only Internet Explorer appears to do this so I&apos;m inclined to call it a bug in Internet Explorer unless there are particularly compelling reasons for everyone to align with their behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78736</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-24 16:12:02 +0000</bug_when>
    <thetext>The situation in specs land is now as follows: user:password support is mandatory.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>