Closed
Bug 638687
Opened 14 years ago
Closed 14 years ago
Facility to suppress the Arrow panel popup in HTML form controls
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: BijuMailList, Unassigned)
Details
Attachments
(1 file)
1.11 KB,
text/html
|
Details |
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.
Comment 1•14 years ago
|
||
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
Comment 2•14 years ago
|
||
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.
Comment 3•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•