From 236c6191c289250188c33900c7646bed2cd72eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Hohwiller?= Date: Wed, 15 Jan 2020 23:18:47 +0100 Subject: [PATCH] #457: also add check/reportValidity --- .../main/java/org/teavm/jso/dom/html/HTMLInputElement.java | 4 ++++ .../main/java/org/teavm/jso/dom/html/HTMLSelectElement.java | 2 ++ .../main/java/org/teavm/jso/dom/html/HTMLTextAreaElement.java | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLInputElement.java b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLInputElement.java index 624e0c2cf..7b10a273e 100644 --- a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLInputElement.java +++ b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLInputElement.java @@ -67,6 +67,10 @@ public interface HTMLInputElement extends HTMLElement { void setValue(String value); void setCustomValidity(String validationFailure); + + boolean checkValidity(); + + boolean reportValidity(); void select(); diff --git a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLSelectElement.java b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLSelectElement.java index d0239a35e..5affcec34 100644 --- a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLSelectElement.java +++ b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLSelectElement.java @@ -58,4 +58,6 @@ public interface HTMLSelectElement extends HTMLElement { void setValue(String value); void setCustomValidity(String validationFailure); + + boolean reportValidity(); } diff --git a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLTextAreaElement.java b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLTextAreaElement.java index a0cfd72ed..b92e4de52 100644 --- a/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLTextAreaElement.java +++ b/jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLTextAreaElement.java @@ -112,6 +112,10 @@ public interface HTMLTextAreaElement extends HTMLElement { int getTextLength(); void setCustomValidity(String validationFailure); + + boolean checkValidity(); + + boolean reportValidity(); void select();