Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets or retrieves the error state of this element.
![]() |
Syntax
object.setAttribute("ariaInvalid",value);var value = object.getAttribute("ariaInvalid");
Property values
Type: BSTR
Whether the value of the element is in error.
(true)
The element fails data validation.
(false)
Default. The element is valid.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
Used in Roles | No role required. |
Set the IHTMLElement5::ariaInvalid state to indicate that the user input is incorrect or not within acceptable ranges. To indicate that input is required, use IHTMLElement5::ariaRequired.
Note For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example object.setAttribute("aria-valuenow", newValue)
.