Be carefull when using input type=”url”
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser