From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- .../api/htmlformelement/reportvalidity/index.html | 58 ---------------------- .../api/htmlformelement/reportvalidity/index.md | 58 ++++++++++++++++++++++ 2 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 files/fr/web/api/htmlformelement/reportvalidity/index.html create mode 100644 files/fr/web/api/htmlformelement/reportvalidity/index.md (limited to 'files/fr/web/api/htmlformelement/reportvalidity') diff --git a/files/fr/web/api/htmlformelement/reportvalidity/index.html b/files/fr/web/api/htmlformelement/reportvalidity/index.html deleted file mode 100644 index c41fd7c61d..0000000000 --- a/files/fr/web/api/htmlformelement/reportvalidity/index.html +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: HTMLFormElement.reportValidity() -slug: Web/API/HTMLFormElement/reportValidity -tags: - - HTML - - Méthode -translation_of: Web/API/HTMLFormElement/reportValidity ---- -
{{APIRef("HTML DOM")}}
- -

La méthode  HTMLFormElement.reportValidity() renvoie true si les contrôles enfants de l'élément répondent à leurs contraintes de validation. Lorsque la valeur false est renvoyée, ,  les événements invalid annulables sont déclenchés pour chaque enfant non valide et les problèmes de validation sont signalés à l'utilisateur. .

- -

Syntax

- -
HTMLFormElement.reportValidity()
-
- -

Valeur de retour

- -

{{domxref("Boolean")}}

- -

Exemple

- -
document.forms['myform'].addEventListener('invalid', function() {
-  // Optional response here
-}, false);
-
-document.forms['myform'].addEventListener('submit', function() {
-  document.forms['myform'].reportValidity();
-}, false);
- -

Specifications

- - - - - - - - - - - - - - - - - - - - - -
SpecificationStatusCommentaire
{{SpecName("HTML WHATWG", "forms.html#dom-cva-reportvalidity", "HTMLFormElement.reportValidity()")}}{{Spec2("HTML WHATWG")}} 
{{SpecName("HTML5.1", "semantics.html#the-constraint-validation-api", "HTMLFormElement.reportValidity()")}}{{Spec2("HTML5.1")}}Définition initiale
- -

Compatibilité des navigateurs

- -

{{Compat("api.HTMLFormElement.reportValidity")}}

diff --git a/files/fr/web/api/htmlformelement/reportvalidity/index.md b/files/fr/web/api/htmlformelement/reportvalidity/index.md new file mode 100644 index 0000000000..c41fd7c61d --- /dev/null +++ b/files/fr/web/api/htmlformelement/reportvalidity/index.md @@ -0,0 +1,58 @@ +--- +title: HTMLFormElement.reportValidity() +slug: Web/API/HTMLFormElement/reportValidity +tags: + - HTML + - Méthode +translation_of: Web/API/HTMLFormElement/reportValidity +--- +
{{APIRef("HTML DOM")}}
+ +

La méthode  HTMLFormElement.reportValidity() renvoie true si les contrôles enfants de l'élément répondent à leurs contraintes de validation. Lorsque la valeur false est renvoyée, ,  les événements invalid annulables sont déclenchés pour chaque enfant non valide et les problèmes de validation sont signalés à l'utilisateur. .

+ +

Syntax

+ +
HTMLFormElement.reportValidity()
+
+ +

Valeur de retour

+ +

{{domxref("Boolean")}}

+ +

Exemple

+ +
document.forms['myform'].addEventListener('invalid', function() {
+  // Optional response here
+}, false);
+
+document.forms['myform'].addEventListener('submit', function() {
+  document.forms['myform'].reportValidity();
+}, false);
+ +

Specifications

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusCommentaire
{{SpecName("HTML WHATWG", "forms.html#dom-cva-reportvalidity", "HTMLFormElement.reportValidity()")}}{{Spec2("HTML WHATWG")}} 
{{SpecName("HTML5.1", "semantics.html#the-constraint-validation-api", "HTMLFormElement.reportValidity()")}}{{Spec2("HTML5.1")}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.HTMLFormElement.reportValidity")}}

-- cgit v1.2.3-54-g00ecf