aria-invalid attribute | ariaInvalid property (Internet Explorer)

Switch View :
ScriptFree
aria-invalid attribute | ariaInvalid property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the error state of this element.

Internet Explorer 8

Syntax

HTML
<element aria-invalid="p" ... >
JavaScript
object.setAttribute("aria-invalid",value);var value = object.getAttribute("aria-invalid");

Property values

Type: String

Whether the value of the element is in error.

(true)

The element fails data validation.

(false)

Default. The element is valid.

Remarks

Set the ariaInvalid state to indicate that the user input is incorrect or not within acceptable ranges. To indicate that input is required, use 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).

See also

Accessible Rich Internet Applications (ARIA)
W3C ARIA-Invalid

 

 

Build date: 2/13/2012