Created attachment 516815 [details] x_moz_errormessage.html Mounir, I see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10923 got rejected, it would be nice if we have a facility to suppress the Arrow panel popup, but just show the red shadow ring on invalid. So I suggest if x-moz-errormessage=" " space we should not do popup at all, as well as same for *.setCustomValidity(' '). Also if x-moz-errormessage = space on the FORM tag, make all the child form controls have default value of space for x-moz-errormessage in each form control.
It's already possible do disable the arrow panel popup by handling the invalid event and returning false. For example: <form> <input required oninvalid="return false;"> <input type='email'> <input type='submit'> </form> -> the popup will never be shown on the first <input>. <form> <input required oninvalid="return false;"> <input type='email' oninvalid="return false;"> <input type='submit'> </form> -> the popup will never be shown. The invalid event doesn't bubble so you will have to use addEventListener if you want to disable the popup for an entire form.
OS: Windows Vista → All
Hardware: x86 → All
In addition, I really believe that x-moz-errormessage is going to be accepted someday. It seems much more appropriate and semantically better than .setCustomValidity() but we really need authors feedback here. In addition, I don't really like the idea of x-moz-errormessage="" disabling the form popup. It's not the purpose of this attribute. In an unrelated note, *.setCustomValidity(' ') doesn't disable the form popup. It even keeps the element invalid (you have to pass '' to remove the custom error, not ' '). If the element suffers from another error, this will be useless.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.