This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12801 - Customized error message when i have required errors
Summary: Customized error message when i have required errors
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 18:06 UTC by Thamizharasu
Modified: 2013-02-06 00:00 UTC (History)
6 users (show)

See Also:


Attachments

Description Thamizharasu 2011-05-27 18:06:12 UTC
Nice to have a keyword to define the required control for input element. If I define a input element as 'required', automatic error message is shown when i submit the form.

There is no possibility to have the customized error message (with i18n support) for this. If that is enabled, most of the hacking will be gone. This would be again a common use case.
Comment 1 Robin Berjon 2013-01-21 16:00:15 UTC
Mass move to "HTML WG"
Comment 2 Robin Berjon 2013-01-21 16:02:59 UTC
Mass move to "HTML WG"
Comment 3 Erika Doyle Navara 2013-02-06 00:00:44 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:


   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: None (already in the spec).
Rationale:
It looks like the "setCustomValidity" method is what you're looking for:

http://www.w3.org/html/wg/drafts/html/master/forms.html#dom-cva-setcustomvalidity