Accessibility/XForms:TextField: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
Line 3: Line 3:
= Summary =
= Summary =


Text field is used to show/change string data. This is the main representation of XForms <code>input</code> element (see the [http://developer.mozilla.org/en/docs/XForms:User_Interface_Elements:Input#text_field docs]).
Text field is used to show/change string data. This is the main representation of XForms <code>input</code> element (see the [http://developer.mozilla.org/en/docs/XForms:User_Interface_Elements:Input#text_field docs]). Also this representation is used for XForms <code>textarea</code> element (see the [http://developer.mozilla.org/en/docs/XForms:User_Interface_Elements:Textarea docs]).
 


= Exposed interfaces =
= Exposed interfaces =
Line 25: Line 26:
== Accessible children ==
== Accessible children ==


This presentation doesn't require any accessible children. But Mozilla XForms implementation allows <code>input</code> to have child elements.
This presentation doesn't require any accessible children. But Mozilla XForms implementation allows XForms elements to have child elements.

Latest revision as of 09:15, 27 December 2006

<< Back to XForms Accessibility Page

Summary

Text field is used to show/change string data. This is the main representation of XForms input element (see the docs). Also this representation is used for XForms textarea element (see the docs).


Exposed interfaces

  • nsIAccessible
  • nsIAccessibleText
  • nsIAccessibleEditableText
  • nsIAccessibleHyperText

Accessibility properties

nsIAccessible

  • role - ROLE_ENTRY
  • name - formed from value of underlying XForms label element
  • description - formed from value of underlying XForms hint element
  • state - formed from MIPs of instance node that XForms element is bound to
  • value - current value of text field
  • action names - activate

Accessible children

This presentation doesn't require any accessible children. But Mozilla XForms implementation allows XForms elements to have child elements.