<?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>12099</bug_id>
          
          <creation_ts>2011-02-16 15:13:45 +0000</creation_ts>
          <short_desc>Input type=url: value range</short_desc>
          <delta_ts>2011-08-04 05:01:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex">stalinbulldog</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45711</commentid>
    <comment_count>0</comment_count>
    <who name="Alex">stalinbulldog</who>
    <bug_when>2011-02-16 15:13:45 +0000</bug_when>
    <thetext>As per the specification below, it appears that &amp;lt;input type=&apos;url&apos; /&amp;gt; fields will not support the special form URL localhost, I believe this to be an oversight as in many cases when querying the user for a url, especially in the case of most post-form applications of this input type, localhost is a perfectly valid response.

In example, a user is instructed to enter the information of a database to connect to, usually the response will be in the form of schema://&amp;lt;ipv4 addr&amp;gt; or localhost, however, occasionally it will take the form of a url [very likely one the user agent has encountered before].  Forcing this application to use the type=&apos;text&apos; field will under-utilize the information the user-agent may be able to supply to the user.

As an aside, thank you for your time in reviewing this.  I am quite excited about the new introductions into the html standard this offers as it may help move web development away from reliance on obscure or arcane classes/ids.

4.10.7.1.4 URL state

The value attribute, if specified, must have a value that is a valid URL potentially surrounded by spaces that is also an absolute URL

2.6 URLs

A URL is an absolute URL if resolving it results in the same output regardless of what it is resolved relative to, and that output is not a failure.

An absolute URL is a hierarchical URL if, when resolved and then parsed, there is a character immediately after the &lt;scheme&gt; component and it is a U+002F SOLIDUS character (/).

An absolute URL is an authority-based URL if, when resolved and then parsed, there are two characters immediately after the &lt;scheme&gt; component and they are both U+002F SOLIDUS characters (//).

To parse a URL url into its component parts, the user agent must use the parse an address algorithm defined by the IRI specification. [RFC3987]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45728</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-02-16 18:34:14 +0000</bug_when>
    <thetext>Maybe I&apos;m missing something but &quot;localhost&quot; is not a valid url, right?  &quot;http://localhost&quot; would be (as would &quot;ssh://localhost&quot; which means something totally different).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45737</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-02-17 01:05:38 +0000</bug_when>
    <thetext>http://localhost is a valid URL for &lt;input type=url&gt; per the spec as far as I can tell.  Why do you think otherwise?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45738</commentid>
    <comment_count>3</comment_count>
    <who name="Alex">stalinbulldog</who>
    <bug_when>2011-02-17 01:07:12 +0000</bug_when>
    <thetext>Valid points, closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52402</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:01:06 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>