changeset 10637:73ace584b9ba

8089124: HTML5: Number input allows non-numeric input Reviewed-by: arajkumar, ghb, mbilla Contributed-by: rajath.kamath@oracle.com
author ghb
date Mon, 11 Sep 2017 15:20:21 +0530
parents c6861b853090
children 10796dea6254
files modules/javafx.web/src/main/native/Source/WebCore/platform/java/WebPage.cpp modules/javafx.web/src/main/resources/com/sun/webkit/LocalizedStrings.properties
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.web/src/main/native/Source/WebCore/platform/java/WebPage.cpp	Fri Sep 08 11:41:45 2017 +0530
+++ b/modules/javafx.web/src/main/native/Source/WebCore/platform/java/WebPage.cpp	Mon Sep 11 15:20:21 2017 +0530
@@ -946,6 +946,7 @@
     settings.setUserAgent(defaultUserAgent());
     settings.setMaximumHTMLParserDOMTreeDepth(180);
     settings.setXSSAuditorEnabled(true);
+    settings.setInteractiveFormValidationEnabled(true);
 
     /* Using java logical fonts as defaults */
     settings.setSerifFontFamily("Serif");
--- a/modules/javafx.web/src/main/resources/com/sun/webkit/LocalizedStrings.properties	Fri Sep 08 11:41:45 2017 +0530
+++ b/modules/javafx.web/src/main/resources/com/sun/webkit/LocalizedStrings.properties	Mon Sep 11 15:20:21 2017 +0530
@@ -127,3 +127,4 @@
 validationMessageTooLongText = too long
 validationMessageTypeMismatchText = type mismatch
 validationMessageValueMissingText = value missing
+validationMessageBadInputForNumberText = Please enter a number