From 9b6f5e7895fd44999996fb4132504d75891e394d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohwiller?= Date: Wed, 15 Jan 2020 09:10:00 +0100 Subject: [PATCH] added setCustomValidity (#458) --- .../src/main/java/org/teavm/jso/dom/html/HTMLInputElement.java | 2 ++ .../src/main/java/org/teavm/jso/dom/html/HTMLSelectElement.java | 2 ++ .../main/java/org/teavm/jso/dom/html/HTMLTextAreaElement.java | 1 + 3 files changed, 5 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 dfbadb23a..624e0c2cf 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 @@ -65,6 +65,8 @@ public interface HTMLInputElement extends HTMLElement { @JSProperty void setValue(String value); + + void setCustomValidity(String validationFailure); 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 4228957ca..d0239a35e 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 @@ -56,4 +56,6 @@ public interface HTMLSelectElement extends HTMLElement { @JSProperty void setValue(String value); + + void setCustomValidity(String validationFailure); } 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 898382917..a0cfd72ed 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 @@ -111,6 +111,7 @@ public interface HTMLTextAreaElement extends HTMLElement { @JSProperty int getTextLength(); + void setCustomValidity(String validationFailure); void select();