Closed Bug 638687 Opened 13 years ago Closed 13 years ago

Facility to suppress the Arrow panel popup in HTML form controls

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: BijuMailList, Unassigned)

Details

Attachments

(1 file)

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.
Marking this bug WONTFIX per comment 1 and comment 2. Please, feel free to reopen if you disagree.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: