Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 299035 of IA2 Object Attributes

  • Revision slug: Accessibility/AT-APIs/IA2/Attrs
  • Revision title: IA2 Object Attributes
  • Revision id: 299035
  • Created:
  • Creator: Surkov.alexander
  • Is current revision? No
  • Comment

Revision Content

 

{{ BackToPage("Accessibility:AT-APIs#Supported_Object_Attributes", "AT APIs Support") }}

Introduction

IAccessible2::getAttributes method is used to get object attributes in IAccessible2. Gecko supports a subset of attributes defined by IA2 spec and on the other hand it provides an extension of object attributes. The complete list of object attributes supported by Gecko can be referred here.

The list of unofficial object attributes:

  • class - a class name for DOM element associated with the accessible, refer to @class attribute;
  • id - identifier of the element associated with the accessible, refer to @id attribute;
  • tag - the tag name of the element associated with the accessible;
  • xml-roles - a list of roles exposed by the accessible;
  • level, posinset, setsize - duplicates the IAccessible2::groupPosition;
  • container-live-role - a role of live region accessible this accessible is contained by;
  • checkable - indicates the accessible is checkable;
  • haspopup - indicates the accessible has associated popup;
  • src - @src attribute of HTML img element;
  • cycles - indicates the table cell accessible is a cycler;
  • layout-guess - indicates the table accessible is rather for layout than for data;
  • valuetext - a text equivalent of value of the accessible.

Revision Source

<p>&nbsp;</p>
<p>{{ BackToPage("Accessibility:AT-APIs#Supported_Object_Attributes", "AT APIs Support") }}</p>
<h2 id="Introduction" name="Introduction">Introduction</h2>
<p><code>IAccessible2::getAttributes</code> method is used to get object attributes in IAccessible2. Gecko supports a subset of attributes defined by <a href="https://www.linuxfoundation.org/collaborate/workgroups/accessibility/iaccessible2/objectattributes" title="https://www.linuxfoundation.org/collaborate/workgroups/accessibility/iaccessible2/objectattributes">IA2 spec</a> and on the other hand it provides an extension of object attributes. The complete list of object attributes supported by Gecko can be referred <a href="en/Accessibility/AT-APIs/Gecko/Attrs">here</a>.</p>
<p>The list of unofficial object attributes:</p>
<ul>
  <li>class - a class name for DOM element associated with the accessible, refer to @class attribute;</li>
  <li>id - identifier of the element associated with the accessible, refer to @id attribute;</li>
  <li>tag - the tag name of the element associated with the accessible;</li>
  <li>xml-roles - a list of roles exposed by the accessible;</li>
  <li>level, posinset, setsize - duplicates the IAccessible2::groupPosition;</li>
  <li>container-live-role - a role of live region accessible this accessible is contained by;</li>
  <li>checkable - indicates the accessible is checkable;</li>
  <li>haspopup - indicates the accessible has associated popup;</li>
  <li>src - @src attribute of HTML img element;</li>
  <li>cycles - indicates the table cell accessible is a cycler;</li>
  <li>layout-guess - indicates the table accessible is rather for layout than for data;</li>
  <li>valuetext - a text equivalent of value of the accessible.</li>
</ul>
Revert to this revision