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

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

From: Kornel Lesinski <kornel@geekhood.net>
Date: Sun, 12 Jul 2009 15:48:51 +0100
Message-ID: <op.uwyl3p05ptj49s@aimac.local>
On Sun, 12 Jul 2009 09:46:19 +0100, Bruce Lawson <brucel at opera.com> wrote:

> 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.

The spec explicitly allows that actual value seen and edited by the user  
in the interface is different from DOM value of the input, so browsers are  
free to prepend http:// automatically (and IMHO should ? DSK-253195).

-- 
regards, Kornel Lesinski
Received on Sunday, 12 July 2009 07:48:51 UTC

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