aria-expanded attribute | ariaExpanded property (Internet Explorer)

Switch View :
ScriptFree
aria-expanded attribute | ariaExpanded property

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

Sets or retrieves the expanded state of this element.

Internet Explorer 8

Syntax

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

Property values

Type: String

The expanded state.

(true)

The element is expanded.

(false)

The element is not expanded.

(undefined)

Default. The element state is unknown.

Remarks

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-Expanded

 

 

Build date: 2/13/2012