W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] input type="url" allow URLs without http:// prefix

From: Geoffrey Sneddon <foolistbar@googlemail.com>
Date: Sun, 12 Jul 2009 11:15:50 +0200
Message-ID: <750C790A-5914-4A3B-9A8A-FEF174660B81@googlemail.com>

On 12 Jul 2009, at 10:46, Bruce Lawson wrote:

> The eleventy squillion WordPress sites out there that allow comments  
> ask for your web page address as well as name and email. The method  
> of entering a URL does not require the http:// prefix; just  
> beginning the URL with www is accepted.
> As it's very common for people to drop the http:// prefix on  
> advertising, business cards etc (and who amongst us reads out the  
> prefix when reading a URL on the phone?) I'd like to suggest that  
> input type="url" allows the http:// prefix to be optional on input  
> and, if ommitted, be assumed when parsing.

How do we tell apart "foo.html" (a relative URL) and "example.com" (a  
host name)?

Geoffrey Sneddon
Received on Sunday, 12 July 2009 02:15:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC