michael@0: michael@0: michael@0: michael@0: michael@0: An NMTOKEN based ARIA property is undefined if the ARIA attribute is not present, or is set to "" or "undefined" michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: Mozilla Bug 452388 michael@0: michael@0: michael@0: Mozilla Bug 499653 michael@0: michael@0: michael@0:

michael@0: michael@0:
michael@0:   
michael@0: michael@0:
This button has aria-pressed="true" and should get ROLE_TOGGLE_BUTTON. It should also get STATE_PRESSED.
michael@0:
This button has aria-pressed="false" and should get ROLE_TOGGLE_BUTTON.
michael@0:
This button has aria-pressed="" and should not get ROLE_BUTTON.
michael@0:
This button has aria-pressed="undefined" and should not get ROLE_TOGGLE_BUTTON.
michael@0:
This button has no aria-pressed attribute and should not get ROLE_TOGGLE_BUTTON.
michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0:
michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0:
michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0:
michael@0:
item
michael@0:
michael@0:
michael@0:
item
michael@0:
michael@0:
michael@0:
item
michael@0:
michael@0:
michael@0:
item
michael@0:
michael@0:
michael@0:
item
michael@0:
michael@0: michael@0:
michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0:
michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0: michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0: michael@0:
michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: michael@0:
michael@0: michael@0:
michael@0:
This treeitem has aria-selected="true" and should get STATE_SELECTABLE. It should also get STATE_SELECTED.
michael@0:
This treeitem has aria-selected="false" and should get STATE_SELECTABLE.
michael@0:
This treeitem has aria-selected="" and should not get STATE_SELECTABLE.
michael@0:
This treeitem has aria-selected="undefined" and should not get STATE_SELECTABLE.
michael@0:
This treeitem has no aria-selected attribute and should not get STATE_SELECTABLE.
michael@0: michael@0:
This treeitem has aria-haspopup="true" and should get STATE_HASPOPUP.
michael@0:
This treeitem has aria-haspopup="false" and should get STATE_HASPOPUP.
michael@0:
This treeitem has aria-haspopup="" and should not get STATE_HASPOPUP.
michael@0:
This treeitem has aria-haspopup="undefined" and should not get STATE_HASPOPUP.
michael@0:
This treeitem has no aria-haspopup attribute and should not get STATE_HASPOPUP.
michael@0: michael@0:
This treeitem has aria-expanded="true" and should get STATE_EXPANDABLE. It should also get STATE_EXPANDED.
michael@0: michael@0:
This treeitem has aria-expanded="" and should not get STATE_EXPANDABLE.
michael@0:
This treeitem has aria-expanded="undefined" and should not get STATE_EXPANDABLE.
michael@0:
This treeitem has no aria-expanded attribute and should not get STATE_EXPANDABLE.
michael@0:
michael@0: michael@0: michael@0: