ariaLabelledby property
Sets or retrieves a list of elements that provide a label for the current object.
Syntax
object.setAttribute("ariaLabelledby",value);var value = object.getAttribute("ariaLabelledby");
Property values
Type: BSTR
A space-separated list of IHTMLElement::id property values.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
Used in Roles | No role required. |
One or more IHTMLElement::id properties may be specified. A list of IHTMLElement::id properties is returned by Microsoft UI Automation.
In addition to providing the IHTMLElement5::ariaLabelledby property, you should also use a label element to indicate a label for previous versions of the browser.
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)
.
If more than one IHTMLElement::id is specified, only the first id is recognized by Windows Internet Explorer 8.
Note Recursive use of IHTMLElement5::ariaLabelledby is not supported. An element that is using IHTMLElement5::ariaLabelledby should not reference another element that is also using IHTMLElement5::ariaLabelledby.
See also
Accessible Rich Internet Applications (ARIA)
Reference