Bug 77454 - Add support for custom messages on form field error's validation
Summary: Add support for custom messages on form field error's validation
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 10:58 PST by Daniel Filho
Modified: 2015-08-19 10:20 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.89 KB, patch)
2012-03-07 13:48 PST, Shezan Baig
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Filho 2012-01-31 10:58:55 PST
Just as Mozilla did on Firefox, it would be great if we could customize the error message given to the user, as it tries to submit a form.

Currently, a default message is shown, but I'd like to choose what to tell the user (i.e. in my language).

Mozilla has the x-moz-errormessage, and can be checked out here: 
https://developer.mozilla.org/en/HTML/Element/Input#attr-x-moz-errormessage

This is my first time here, so, I'm sorry if I did something wrong or some lack of info.



Daniel
Comment 1 Shezan Baig 2012-03-07 13:48:38 PST
Created attachment 130689 [details]
Patch
Comment 2 Kent Tamura 2012-03-07 16:23:43 PST
(In reply to comment #1)
> Created an attachment (id=130689) [details]
> Patch

You have to announce this to webkit-dev.
http://www.webkit.org/coding/adding-features.html

I guess some objections will be made because this feature is not standardized at all.
Comment 3 Shezan Baig 2012-03-07 19:07:20 PST
Comment on attachment 130689 [details]
Patch

Hmm on second thought, I think i'll just withdraw this patch for now.  This was my first patch attempt for webkit and I wanted to try something simple to get started, but I'd rather not checkin something non-standard :)