Michael Scharnagl 12/28/2012

Be carefull when using input type=”url”

Read Original

This technical article details a developer's frustration with inconsistent browser validation of HTML5's `input type='url'`. It explains how browsers incorrectly reject URLs like 'www.example.com' without a protocol, provides test results, and offers a custom regex pattern using the `pattern` attribute to enforce proper URL validation across browsers.

Be carefull when using input type=”url”

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week