Accessibility/XForms:PasswordField

From MozillaWiki
Jump to: navigation, search

<< Back to XForms Accessibility Page

Summary

Password field is used for inputting passwords. Each character typed by the user is represented by an asterisk on the screen. It is used for XForms secret element (see the docs).


Exposed interfaces

  • nsIAccessible
  • nsIAccessibleText
  • nsIAccessibleEditableText
  • nsIAccessibleHyperText

Accessibility properties

nsIAccessible

  • role - ROLE_PASSWORD_TEXT
  • name - formed from value of underlying XForms label element
  • description - formed from value of underlying XForms hint element
  • state -
    • formed from states of instance node that XForms element is bound to
    • STATE_PROTECTED
  • value - the value cannot be obtained
  • action names - activate

Accessible children

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