-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pages for HTML*Element.willValidate (#35665)
* Add pages for HTML*Element.willValidate * Reviews
- Loading branch information
Showing
8 changed files
with
205 additions
and
6 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
files/en-us/web/api/htmlbuttonelement/willvalidate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "HTMLButtonElement: willValidate property" | ||
short-title: willValidate | ||
slug: Web/API/HTMLButtonElement/willValidate | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLButtonElement.willValidate | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
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: | ||
|
||
- Its {{domxref("HTMLButtonElement.type", "type")}} is `reset` or `button`; | ||
- It has a {{HTMLElement("datalist")}} ancestor; | ||
- The {{domxref("HTMLButtonElement.disabled", "disabled")}} property is `true`. | ||
|
||
## Value | ||
|
||
A boolean value. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLButtonElement.checkValidity()")}} | ||
- {{HTMLElement("button")}} | ||
- {{HTMLElement("form")}} | ||
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation) | ||
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation) |
31 changes: 31 additions & 0 deletions
31
files/en-us/web/api/htmlfieldsetelement/willvalidate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "HTMLFieldSetElement: willValidate property" | ||
short-title: willValidate | ||
slug: Web/API/HTMLFieldSetElement/willValidate | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLFieldSetElement.willValidate | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
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). | ||
|
||
## Value | ||
|
||
The boolean value `false`. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLFieldSetElement.checkValidity()")}} | ||
- {{HTMLElement("fieldset")}} | ||
- {{HTMLElement("form")}} | ||
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation) | ||
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation) |
35 changes: 35 additions & 0 deletions
35
files/en-us/web/api/htmlinputelement/willvalidate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "HTMLInputElement: willValidate property" | ||
short-title: willValidate | ||
slug: Web/API/HTMLInputElement/willValidate | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLInputElement.willValidate | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
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: | ||
|
||
- Its {{domxref("HTMLInputElement.type", "type")}} is one of `hidden`, `reset` or `button`; | ||
- It has a {{HTMLElement("datalist")}} ancestor; | ||
- Its {{domxref("HTMLInputElement.disabled", "disabled")}} property is `true`. | ||
|
||
## Value | ||
|
||
A boolean value. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLInputElement.checkValidity()")}} | ||
- {{HTMLElement("input")}} | ||
- {{HTMLElement("form")}} | ||
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation) | ||
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
files/en-us/web/api/htmloutputelement/willvalidate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "HTMLOutputElement: willValidate property" | ||
short-title: willValidate | ||
slug: Web/API/HTMLOutputElement/willValidate | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLOutputElement.willValidate | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
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). | ||
|
||
## Value | ||
|
||
The boolean value `false`. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLOutputElement.checkValidity()")}} | ||
- {{HTMLElement("output")}} | ||
- {{HTMLElement("form")}} | ||
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation) | ||
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation) |
31 changes: 31 additions & 0 deletions
31
files/en-us/web/api/htmlselectelement/willvalidate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "HTMLSelectElement: willValidate property" | ||
short-title: willValidate | ||
slug: Web/API/HTMLSelectElement/willValidate | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLSelectElement.willValidate | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
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`. | ||
|
||
## Value | ||
|
||
A boolean value. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLSelectElement.checkValidity()")}} | ||
- {{HTMLElement("select")}} | ||
- {{HTMLElement("form")}} | ||
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation) | ||
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation) |
31 changes: 31 additions & 0 deletions
31
files/en-us/web/api/htmltextareaelement/willvalidate/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "HTMLTextAreaElement: willValidate property" | ||
short-title: willValidate | ||
slug: Web/API/HTMLTextAreaElement/willValidate | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLTextAreaElement.willValidate | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
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`. | ||
|
||
## Value | ||
|
||
A boolean value. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLTextAreaElement.checkValidity()")}} | ||
- {{HTMLElement("textarea")}} | ||
- {{HTMLElement("form")}} | ||
- [Learn: Client-side form validation](/en-US/docs/Learn/Forms/Form_validation) | ||
- [Guide: Constraint validation](/en-US/docs/Web/HTML/Constraint_validation) |