Skip to content

Commit 4524e28

Browse files
authored
Add pages for HTML*Element.willValidate (mdn#35665)
* Add pages for HTML*Element.willValidate * Reviews
1 parent a846e59 commit 4524e28

File tree

8 files changed

+205
-6
lines changed

8 files changed

+205
-6
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "HTMLButtonElement: willValidate property"
3+
short-title: willValidate
4+
slug: Web/API/HTMLButtonElement/willValidate
5+
page-type: web-api-instance-property
6+
browser-compat: api.HTMLButtonElement.willValidate
7+
---
8+
9+
{{APIRef("HTML DOM")}}
10+
11+
The **`willValidate`** read-only property of the {{domxref("HTMLButtonElement")}} interface indicates whether the {{htmlelement("button")}} element is a candidate for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation). It is `false` if any conditions bar it from constraint validation, including:
12+
13+
- Its {{domxref("HTMLButtonElement.type", "type")}} is `reset` or `button`;
14+
- It has a {{HTMLElement("datalist")}} ancestor;
15+
- The {{domxref("HTMLButtonElement.disabled", "disabled")}} property is `true`.
16+
17+
## Value
18+
19+
A boolean value.
20+
21+
## Specifications
22+
23+
{{Specifications}}
24+
25+
## Browser compatibility
26+
27+
{{Compat}}
28+
29+
## See also
30+
31+
- {{domxref("HTMLButtonElement.checkValidity()")}}
32+
- {{HTMLElement("button")}}
33+
- {{HTMLElement("form")}}
34+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
35+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "HTMLFieldSetElement: willValidate property"
3+
short-title: willValidate
4+
slug: Web/API/HTMLFieldSetElement/willValidate
5+
page-type: web-api-instance-property
6+
browser-compat: api.HTMLFieldSetElement.willValidate
7+
---
8+
9+
{{APIRef("HTML DOM")}}
10+
11+
The **`willValidate`** read-only property of the {{domxref("HTMLFieldSetElement")}} interface returns `false`, because {{HTMLElement("fieldset")}} elements are not candidates for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation).
12+
13+
## Value
14+
15+
The boolean value `false`.
16+
17+
## Specifications
18+
19+
{{Specifications}}
20+
21+
## Browser compatibility
22+
23+
{{Compat}}
24+
25+
## See also
26+
27+
- {{domxref("HTMLFieldSetElement.checkValidity()")}}
28+
- {{HTMLElement("fieldset")}}
29+
- {{HTMLElement("form")}}
30+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
31+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "HTMLInputElement: willValidate property"
3+
short-title: willValidate
4+
slug: Web/API/HTMLInputElement/willValidate
5+
page-type: web-api-instance-property
6+
browser-compat: api.HTMLInputElement.willValidate
7+
---
8+
9+
{{APIRef("HTML DOM")}}
10+
11+
The **`willValidate`** read-only property of the {{domxref("HTMLInputElement")}} interface indicates whether the {{htmlelement("input")}} element is a candidate for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation). It is `false` if any conditions bar it from constraint validation, including:
12+
13+
- Its {{domxref("HTMLInputElement.type", "type")}} is one of `hidden`, `reset` or `button`;
14+
- It has a {{HTMLElement("datalist")}} ancestor;
15+
- Its {{domxref("HTMLInputElement.disabled", "disabled")}} property is `true`.
16+
17+
## Value
18+
19+
A boolean value.
20+
21+
## Specifications
22+
23+
{{Specifications}}
24+
25+
## Browser compatibility
26+
27+
{{Compat}}
28+
29+
## See also
30+
31+
- {{domxref("HTMLInputElement.checkValidity()")}}
32+
- {{HTMLElement("input")}}
33+
- {{HTMLElement("form")}}
34+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
35+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)

files/en-us/web/api/htmlobjectelement/willvalidate/index.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ browser-compat: api.HTMLObjectElement.willValidate
88

99
{{APIRef("HTML DOM")}}
1010

11-
The **`willValidate`** read-only property of
12-
the {{domxref("HTMLObjectElement")}} interface returns a boolean value that
13-
indicates whether the element is a candidate for constraint validation. Always false for
14-
HTMLObjectElement objects.
11+
The **`willValidate`** read-only property of the {{domxref("HTMLObjectElement")}} interface returns `false`, because {{HTMLElement("object")}} elements are not candidates for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation).
1512

1613
## Value
1714

18-
A boolean value.
15+
The boolean value `false`.
1916

2017
## Specifications
2118

@@ -24,3 +21,11 @@ A boolean value.
2421
## Browser compatibility
2522

2623
{{Compat}}
24+
25+
## See also
26+
27+
- {{domxref("HTMLObjectElement.checkValidity()")}}
28+
- {{HTMLElement("object")}}
29+
- {{HTMLElement("form")}}
30+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
31+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)

files/en-us/web/api/htmloutputelement/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ _This interface also inherits properties from its parent, {{domxref("HTMLElement
3434
- {{domxref("HTMLOutputElement.value")}}
3535
- : A string representing the value of the contents of the elements. Behaves like the {{domxref("Node.textContent")}} property.
3636
- {{domxref("HTMLOutputElement.willValidate")}} {{ReadOnlyInline}}
37-
- : A boolean value indicating whether the element is a candidate for constraint validation.
37+
- : Returns a boolean value that indicates whether the element is a candidate for constraint validation. Always `false` for `HTMLOutputElement` objects.
3838

3939
## Instance methods
4040

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "HTMLOutputElement: willValidate property"
3+
short-title: willValidate
4+
slug: Web/API/HTMLOutputElement/willValidate
5+
page-type: web-api-instance-property
6+
browser-compat: api.HTMLOutputElement.willValidate
7+
---
8+
9+
{{APIRef("HTML DOM")}}
10+
11+
The **`willValidate`** read-only property of the {{domxref("HTMLOutputElement")}} interface returns `false`, because {{HTMLElement("output")}} elements are not candidates for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation).
12+
13+
## Value
14+
15+
The boolean value `false`.
16+
17+
## Specifications
18+
19+
{{Specifications}}
20+
21+
## Browser compatibility
22+
23+
{{Compat}}
24+
25+
## See also
26+
27+
- {{domxref("HTMLOutputElement.checkValidity()")}}
28+
- {{HTMLElement("output")}}
29+
- {{HTMLElement("form")}}
30+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
31+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "HTMLSelectElement: willValidate property"
3+
short-title: willValidate
4+
slug: Web/API/HTMLSelectElement/willValidate
5+
page-type: web-api-instance-property
6+
browser-compat: api.HTMLSelectElement.willValidate
7+
---
8+
9+
{{APIRef("HTML DOM")}}
10+
11+
The **`willValidate`** read-only property of the {{domxref("HTMLSelectElement")}} interface indicates whether the {{htmlelement("select")}} element is a candidate for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation). It is `false` if any conditions bar it from constraint validation, such as when its {{domxref("HTMLSelectElement.disabled", "disabled")}} property is `true`.
12+
13+
## Value
14+
15+
A boolean value.
16+
17+
## Specifications
18+
19+
{{Specifications}}
20+
21+
## Browser compatibility
22+
23+
{{Compat}}
24+
25+
## See also
26+
27+
- {{domxref("HTMLSelectElement.checkValidity()")}}
28+
- {{HTMLElement("select")}}
29+
- {{HTMLElement("form")}}
30+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
31+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "HTMLTextAreaElement: willValidate property"
3+
short-title: willValidate
4+
slug: Web/API/HTMLTextAreaElement/willValidate
5+
page-type: web-api-instance-property
6+
browser-compat: api.HTMLTextAreaElement.willValidate
7+
---
8+
9+
{{APIRef("HTML DOM")}}
10+
11+
The **`willValidate`** read-only property of the {{domxref("HTMLTextAreaElement")}} interface indicates whether the {{htmlelement("textarea")}} element is a candidate for [constraint validation](/en-US/docs/Web/HTML/Constraint_validation). It is `false` if any conditions bar it from constraint validation, such as when its {{domxref("HTMLTextAreaElement.disabled", "disabled")}} or {{domxref("HTMLTextAreaElement.readOnly", "readOnly")}} property is `true`.
12+
13+
## Value
14+
15+
A boolean value.
16+
17+
## Specifications
18+
19+
{{Specifications}}
20+
21+
## Browser compatibility
22+
23+
{{Compat}}
24+
25+
## See also
26+
27+
- {{domxref("HTMLTextAreaElement.checkValidity()")}}
28+
- {{HTMLElement("textarea")}}
29+
- {{HTMLElement("form")}}
30+
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation)
31+
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation)

0 commit comments

Comments
 (0)