Accessibility/Attributes
Proposed AT-SPI Attribute Support
| Attribute name | Attribute description | Document attribute | Object attribute | Image attribute | Text attribute | Default text attribute |
|---|---|---|---|---|---|---|
| W3C-doctype | Equivalent to what is specified in the <!DOCTYPE> header | Yes | ||||
| DocURL | The location of the current document, including possibly a named anchor jumped to, for example http://www.foo.org#maincontent | Yes | ||||
| MimeType | The mime or media type, such as text/plain, text/html, image/jpeg, image/svg+xml, application/xml+xhtml and application/vnd.mozilla.xul+xml. | Yes | ||||
| id | A persistant ID for this object, useful for scripting | Yes | ||||
| tag | The markup tag used to create this element | Yes | ||||
| xml-roles | The exact ARIA role, Used when a dynamic content accessibility role string is used, it is exposed here. This may provide more information than the AT-SPI role, which is best-fit. In the future, this may be a space or comma delimited list of roles ... hopefully t :) | Yes | ||||
| layout-guess | "true" when Gecko's heuristic determines that it is a table that is probably used for layout, t for table. Value not set means it is probably a data table. |
Only on ROLE_TABLE | ||||
| level | The heading level | Only on ROLE_HEADING currently | ||||
| locale | What language is this text in, e.g. en-US | Yes | Yes | Yes | Yes | |
| static | "true" for list bullet/numbering text or layout-inserted text (such as via CSS pseudo styles :before or :after) | Yes | Yes | |||
| misspelled | "true" if it is underlined by the inline spell checker for being incorrectly spelled | Yes | ||||
| border | not sure how best to expose these properties, or whether to (same with outline CSS property) | |||||
| background-color | Foreground color as hex value #RRGGBB | Yes? | Yes | Yes | ||
| color | Foreground color as hex value #RRGGBB | Yes | Yes | |||
| direction | rtl or ltf for bidi text | Yes | Yes | |||
| font-family | The computed font name | Yes | Yes | |||
| font-size | Font size ... in em's or what? | Yes | Yes | |||
| font-style | italic|oblique | Yes | Yes | |||
| font-weight | The computed font weight, as a number (a percent?) | Yes | Yes | |||
| text-align | center|right|justify | Yes | ||||
| text-decoration | underline|overline|line-through|blink | Yes | ||||
| z-index | a number which indicates how low/high an element is | Yes | Yes |