Open Bug 1335338 Opened 7 years ago Updated 2 years ago

FF does not accept user input without prefix in <input type="url" />

Categories

(Core :: DOM: Core & HTML, defect, P5)

51 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: chris, Unassigned)

Details

(Keywords: html5)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170125094131

Steps to reproduce:

On my website I was recommended to use <input type="url" /> instead of <input type="text" /> to input a website. Now all input without URL prefix is not accepted. Even though FF promotes the usage of URLs without the prefix in the URL-bar, or when hovering the mouse over a http-prefixed URL (different with https prefix).

To be sure, I really welcome this feature of more input-types. Totally makes sense, to have a browser-side check of email and other types of user input.

But to be honest, this special case doesn't make much sense to me. How many cases do we have in reality actually? I mean, how many times is the <input type="url" /> used to input sth like file://foo.bar or ssh://foo.bar or git://foo.bar? Since there is no special type "website", which would make sense to me, I would assume that maybe > 90% of the time this type is used as a website URL type. Maybe sth to consider to amend to the standard?


Actual results:

Input not accepted.
www.musicchris.de -> rejected
musicchris.de -> rejected
http://musicchris.de -> accepted
file://musicchris.de -> accepted


Expected results:

Input should be accepted.
www.musicchris.de -> accepted
musicchris.de -> accepted
http://musicchris.de -> accepted
file://musicchris.de -> rejected
Keywords: html5
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.