Validation message set by setCustomValidity() is not shown on hover
Reported by
radu....@connatix.com,
Apr 4 2018
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Example URL: https://jsfiddle.net/065thz0w/3/ Steps to reproduce the problem: 1. create a webpage with the flowing input <input type="text" id="username" required placeholder="Enter Name" oninput="setCustomValidity('error')" /> 2. enter something in the input 3. click outside What is the expected behavior? The field should have been red The field should have error message on hover What went wrong? Nothing happens. Does it occur on multiple sites: N/A Is it a problem with a plugin? N/A Did this work before? N/A Does this work in other browsers? N/A Chrome version: 65.0.3325.181 Channel: stable OS Version: 10.0 Flash Version:
,
Apr 4 2018
,
Apr 4 2018
,
Apr 5 2018
> What is the expected behavior? > The field should have been red Firefox works so because it has non-standard pseudo selector :moz-ui-invalid, and it has the default style. > The field should have error message on hover It seems this is a real bug. If we hover on the <input> without typing anything, it shows "Please fill out this field" tooltip. However, after calling setCustomValidity(), no tooltip is shown. |
||||
►
Sign in to add a comment |
||||
Comment 1 by woxxom@gmail.com
, Apr 4 2018