Mozilla Bug 452388 Mozilla Bug 499653

This button has aria-pressed="true" and should get ROLE_TOGGLE_BUTTON. It should also get STATE_PRESSED.
This button has aria-pressed="false" and should get ROLE_TOGGLE_BUTTON.
This button has aria-pressed="" and should <emph>not</emph> get ROLE_BUTTON.
This button has aria-pressed="undefined" and should <emph>not</emph> get ROLE_TOGGLE_BUTTON.
This button has <emph>no</emph> aria-pressed attribute and should <emph>not</emph> get ROLE_TOGGLE_BUTTON.
This checkbox has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.
This checkbox has aria-checked="false" and should get STATE_CHECKABLE.
This checkbox has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.
This checkbox has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.
This checkbox has <emph>no</emph> aria-checked attribute and should get STATE_CHECKABLE.
This checkbox has aria-readonly="true" and should get STATE_READONLY.
This checkbox has aria-readonly="false" and should <emph>not</emph> get STATE_READONLY.
This checkbox has aria-readonly="" and should <emph>not</emph> get STATE_READONLY.
This checkbox has aria-readonly="undefined" and should <emph>not</emph> get STATE_READONLY.
This checkbox has <emph>no</emph> aria-readonly attribute and should <emph>not</emph> get STATE_READONLY.
This checkbox has aria-required="true" and should get STATE_REQUIRED.
This checkbox has aria-required="false" and should <emph>not</emph> get STATE_REQUIRED.
This checkbox has aria-required="" and should <emph>not</emph> get STATE_REQUIRED.
This checkbox has aria-required="undefined" and should <emph>not</emph> get STATE_REQUIRED.
This checkbox has <emph>no</emph> aria-required attribute and should <emph>not</emph> get STATE_REQUIRED.
This checkbox has aria-invalid="true" and should get STATE_INVALID.
This checkbox has aria-invalid="false" and should <emph>not</emph> get STATE_INVALID.
This checkbox has aria-invalid="" and should <emph>not</emph> get STATE_INVALID.
This checkbox has aria-invalid="undefined" and should <emph>not</emph> get STATE_INVALID.
This checkbox has <emph>no</emph> aria-invalid attribute and should <emph>not</emph> get STATE_INVALID.
This checkbox has aria-disabled="true" and should get STATE_DISABLED.
This checkbox has aria-disabled="false" and should <emph>not</emph> get STATE_DISABLED.
This checkbox has aria-disabled="" and should <emph>not</emph> get STATE_DISABLED.
This checkbox has aria-disabled="undefined" and should <emph>not</emph> get STATE_DISABLED.
This checkbox has <emph>no</emph> aria-disabled attribute and should <emph>not</emph> get STATE_DISABLED.
item
item
item
item
item
This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.
This menuitem has aria-checked="false" and should get STATE_CHECKABLE.
This menuitem has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has <emph>no</emph> aria-checked attribute and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.
This menuitem has aria-checked="false" and should get STATE_CHECKABLE.
This menuitem has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has <emph>no</emph> aria-checked attribute but should get STATE_CHECKABLE.
This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_CHECKED.
This menuitem has aria-checked="false" and should get STATE_CHECKABLE.
This menuitem has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.
This menuitem has <emph>no</emph> aria-checked attribute but should get STATE_CHECKABLE.
This treeitem has aria-selected="true" and should get STATE_SELECTABLE. It should also get STATE_SELECTED.
This treeitem has aria-selected="false" and should get STATE_SELECTABLE.
This treeitem has aria-selected="" and should <emph>not</emph> get STATE_SELECTABLE.
This treeitem has aria-selected="undefined" and should <emph>not</emph> get STATE_SELECTABLE.
This treeitem has <emph>no</emph> aria-selected attribute and should <emph>not</emph> get STATE_SELECTABLE.
This treeitem has aria-haspopup="true" and should get STATE_HASPOPUP.
This treeitem has aria-haspopup="false" and should get STATE_HASPOPUP.
This treeitem has aria-haspopup="" and should <emph>not</emph> get STATE_HASPOPUP.
This treeitem has aria-haspopup="undefined" and should <emph>not</emph> get STATE_HASPOPUP.
This treeitem has <emph>no</emph> aria-haspopup attribute and should <emph>not</emph> get STATE_HASPOPUP.
This treeitem has aria-expanded="true" and should get STATE_EXPANDABLE. It should also get STATE_EXPANDED.
This treeitem has aria-expanded="false" and should get STATE_EXPANDABLE. It should also get STATE_COLLAPSED.
This treeitem has aria-expanded="" and should <emph>not</emph> get STATE_EXPANDABLE.
This treeitem has aria-expanded="undefined" and should <emph>not</emph> get STATE_EXPANDABLE.
This treeitem has <emph>no</emph> aria-expanded attribute and should <emph>not</emph> get STATE_EXPANDABLE.