URL field is not type=url nor inputmode=url

33 views
Skip to first unread message

Weston Ruter

unread,
Nov 26, 2025, 1:41:26 PM (2 days ago) Nov 26
to Chrome UX Report (Discussions)
I just noticed that the URL input field is type=text instead of the expected type=url. 

Similarly, it has inputmode=text when I would expect inputmode=url.

Fixing this will help with input especially on mobile.

The field in question, in case there is any doubt:

Screenshot 2025-11-26 at 10.40.56.png

Weston Ruter

unread,
Nov 26, 2025, 1:41:57 PM (2 days ago) Nov 26
to Chrome UX Report (Discussions), Weston Ruter
To be clear, I'm talking about https://cruxvis.withgoogle.com/

Barry Pollard

unread,
Nov 26, 2025, 2:07:55 PM (2 days ago) Nov 26
to Weston Ruter, Chrome UX Report (Discussions)
Hey Weston,

We deliberately don't use type=url because we want to allow people to enter schemeless URLs (e.g. www.example.com) and default the https:// scheme in this case for easier typing of URLs. I find type=url overly restrictive because of this.

We could use inputmode=url though as it doesn't enforce this AFAIK and just provides the appropriate keyboard layout. One downside that I am aware of for this is that on iOS it hides the spacebar (makes sense as URLs can't contain spaces), but this makes editing the URL more difficult as that's useful to move the cursor (but pressing and holding on the space bar and then moving the cursor left and right). Personally I use this a lot and get annoyed when sites use inputmode=url, but maybe that's just me and the gains of dots, slashes and .com buttons are worth that trade off? Or maybe it's just bad design on iOS's part?

Curious to hear yours (and others!) thoughts on this.

--
You received this message because you are subscribed to the Google Groups "Chrome UX Report (Discussions)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ux-repo...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ux-report/87460714-011c-416f-99fd-f99fbd883998n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages