Commit 1a6f0e2c authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

HTML5 required attribute validation messages implemented.

https://bugs.webkit.org/show_bug.cgi?id=125003

Patch by Attila Dusnoki <adusnoki@inf.u-szeged.hu> on 2013-12-02
Reviewed by Gyuyoung Kim.

* platform/efl/LocalizedStringsEfl.cpp:
(WebCore::validationMessagePatternMismatchText):
(WebCore::validationMessageValueMissingText):
(WebCore::validationMessageValueMissingForCheckboxText):
(WebCore::validationMessageValueMissingForFileText):
(WebCore::validationMessageValueMissingForMultipleFileText):
(WebCore::validationMessageValueMissingForRadioText):
(WebCore::validationMessageValueMissingForSelectText):
(WebCore::validationMessageBadInputForNumberText):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4bc671cd
2013-12-02 Attila Dusnoki <adusnoki@inf.u-szeged.hu>
HTML5 required attribute validation messages implemented.
https://bugs.webkit.org/show_bug.cgi?id=125003
Reviewed by Gyuyoung Kim.
* platform/efl/LocalizedStringsEfl.cpp:
(WebCore::validationMessagePatternMismatchText):
(WebCore::validationMessageValueMissingText):
(WebCore::validationMessageValueMissingForCheckboxText):
(WebCore::validationMessageValueMissingForFileText):
(WebCore::validationMessageValueMissingForMultipleFileText):
(WebCore::validationMessageValueMissingForRadioText):
(WebCore::validationMessageValueMissingForSelectText):
(WebCore::validationMessageBadInputForNumberText):
2013-12-01 Andreas Kling <akling@apple.com>
 
SVG: Intersection/enclosure checks should use RenderElement.
......@@ -528,7 +528,7 @@ String mediaElementLiveBroadcastStateText()
String validationMessagePatternMismatchText()
{
return String::fromUTF8("pattern mismatch");
return ASCIILiteral("Please match the requested format:");
}
String validationMessageRangeOverflowText(const String& maximum)
......@@ -573,43 +573,37 @@ String validationMessageTypeMismatchForURLText()
String validationMessageValueMissingText()
{
return String::fromUTF8("value missing");
return ASCIILiteral("Please fill out this field.");
}
String validationMessageValueMissingForCheckboxText()
{
notImplemented();
return validationMessageValueMissingText();
return ASCIILiteral("Please check this box if you want to proceed.");
}
String validationMessageValueMissingForFileText()
{
notImplemented();
return validationMessageValueMissingText();
return ASCIILiteral("Please select a file.");
}
String validationMessageValueMissingForMultipleFileText()
{
notImplemented();
return validationMessageValueMissingText();
return ASCIILiteral("Please select one or more files.");
}
String validationMessageValueMissingForRadioText()
{
notImplemented();
return validationMessageValueMissingText();
return ASCIILiteral("Please select one of these options.");
}
String validationMessageValueMissingForSelectText()
{
notImplemented();
return validationMessageValueMissingText();
return ASCIILiteral("Please select an item in the list.");
}
String validationMessageBadInputForNumberText()
{
notImplemented();
return validationMessageTypeMismatchText();
return ASCIILiteral("Please enter a number.");
}
String missingPluginText()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment