<divid="button_pressed_true"role="button"aria-pressed="true">This button has aria-pressed="true" and should get ROLE_TOGGLE_BUTTON. It should also get STATE_PRESSED.</div>
<divid="button_pressed_false"role="button"aria-pressed="false">This button has aria-pressed="false" and should get ROLE_TOGGLE_BUTTON.</div>
<divid="button_pressed_empty"role="button"aria-pressed="">This button has aria-pressed="" and should <emph>not</emph> get ROLE_BUTTON.</div>
<divid="button_pressed_undefined"role="button"aria-pressed="undefined">This button has aria-pressed="undefined" and should <emph>not</emph> get ROLE_TOGGLE_BUTTON.</div>
<divid="button_pressed_absent"role="button">This button has <emph>no</emph> aria-pressed attribute and should <emph>not</emph> get ROLE_TOGGLE_BUTTON.</div>
<divid="checkbox_checked_true"role="checkbox"aria-checked="true">This checkbox has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.</div>
<divid="checkbox_checked_false"role="checkbox"aria-checked="false">This checkbox has aria-checked="false" and should get STATE_CHECKABLE.</div>
<divid="checkbox_checked_empty"role="checkbox"aria-checked="">This checkbox has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="checkbox_checked_undefined"role="checkbox"aria-checked="undefined">This checkbox has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="checkbox_readonly_true"role="checkbox"aria-readonly="true">This checkbox has aria-readonly="true" and should get STATE_READONLY.</div>
<divid="checkbox_readonly_false"role="checkbox"aria-readonly="false">This checkbox has aria-readonly="false" and should <emph>not</emph> get STATE_READONLY.</div>
<divid="checkbox_readonly_empty"role="checkbox"aria-readonly="">This checkbox has aria-readonly="" and should <emph>not</emph> get STATE_READONLY.</div>
<divid="checkbox_readonly_undefined"role="checkbox"aria-readonly="undefined">This checkbox has aria-readonly="undefined" and should <emph>not</emph> get STATE_READONLY.</div>
<divid="checkbox_readonly_absent"role="checkbox">This checkbox has <emph>no</emph> aria-readonly attribute and should <emph>not</emph> get STATE_READONLY.</div>
<divid="checkbox_required_true"role="checkbox"aria-required="true">This checkbox has aria-required="true" and should get STATE_REQUIRED.</div>
<divid="checkbox_required_false"role="checkbox"aria-required="false">This checkbox has aria-required="false" and should <emph>not</emph> get STATE_REQUIRED.</div>
<divid="checkbox_required_empty"role="checkbox"aria-required="">This checkbox has aria-required="" and should <emph>not</emph> get STATE_REQUIRED.</div>
<divid="checkbox_required_undefined"role="checkbox"aria-required="undefined">This checkbox has aria-required="undefined" and should <emph>not</emph> get STATE_REQUIRED.</div>
<divid="checkbox_required_absent"role="checkbox">This checkbox has <emph>no</emph> aria-required attribute and should <emph>not</emph> get STATE_REQUIRED.</div>
<divid="checkbox_invalid_true"role="checkbox"aria-invalid="true">This checkbox has aria-invalid="true" and should get STATE_INVALID.</div>
<divid="checkbox_invalid_false"role="checkbox"aria-invalid="false">This checkbox has aria-invalid="false" and should <emph>not</emph> get STATE_INVALID.</div>
<divid="checkbox_invalid_empty"role="checkbox"aria-invalid="">This checkbox has aria-invalid="" and should <emph>not</emph> get STATE_INVALID.</div>
<divid="checkbox_invalid_undefined"role="checkbox"aria-invalid="undefined">This checkbox has aria-invalid="undefined" and should <emph>not</emph> get STATE_INVALID.</div>
<divid="checkbox_invalid_absent"role="checkbox">This checkbox has <emph>no</emph> aria-invalid attribute and should <emph>not</emph> get STATE_INVALID.</div>
<divid="checkbox_disabled_true"role="checkbox"aria-disabled="true"tabindex="0">This checkbox has aria-disabled="true" and should get STATE_DISABLED.</div>
<divid="checkbox_disabled_false"role="checkbox"aria-disabled="false">This checkbox has aria-disabled="false" and should <emph>not</emph> get STATE_DISABLED.</div>
<divid="checkbox_disabled_empty"role="checkbox"aria-disabled="">This checkbox has aria-disabled="" and should <emph>not</emph> get STATE_DISABLED.</div>
<divid="checkbox_disabled_undefined"role="checkbox"aria-disabled="undefined">This checkbox has aria-disabled="undefined" and should <emph>not</emph> get STATE_DISABLED.</div>
<divid="checkbox_disabled_absent"role="checkbox">This checkbox has <emph>no</emph> aria-disabled attribute and should <emph>not</emph> get STATE_DISABLED.</div>
<divid="menuitem_checked_true"role="menuitem"aria-checked="true">This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.</div>
<divid="menuitem_checked_false"role="menuitem"aria-checked="false">This menuitem has aria-checked="false" and should get STATE_CHECKABLE.</div>
<divid="menuitem_checked_empty"role="menuitem"aria-checked="">This menuitem has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="menuitem_checked_undefined"role="menuitem"aria-checked="undefined">This menuitem has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="menuitem_checked_absent"role="menuitem">This menuitem has <emph>no</emph> aria-checked attribute and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="menuitemradio_checked_true"role="menuitemradio"aria-checked="true">This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.</div>
<divid="menuitemradio_checked_false"role="menuitemradio"aria-checked="false">This menuitem has aria-checked="false" and should get STATE_CHECKABLE.</div>
<divid="menuitemradio_checked_empty"role="menuitemradio"aria-checked="">This menuitem has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="menuitemradio_checked_undefined"role="menuitemradio"aria-checked="undefined">This menuitem has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="menuitemradio_checked_absent"role="menuitemradio">This menuitem has <emph>no</emph> aria-checked attribute but should get STATE_CHECKABLE.</div>
</div>
<divid="radio_checked_true"role="radio"aria-checked="true">This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_CHECKED.</div>
<divid="radio_checked_false"role="radio"aria-checked="false">This menuitem has aria-checked="false" and should get STATE_CHECKABLE.</div>
<divid="radio_checked_empty"role="radio"aria-checked="">This menuitem has aria-checked="" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="radio_checked_undefined"role="radio"aria-checked="undefined">This menuitem has aria-checked="undefined" and should <emph>not</emph> get STATE_CHECKABLE.</div>
<divid="radio_checked_absent"role="radio">This menuitem has <emph>no</emph> aria-checked attribute but should get STATE_CHECKABLE.</div>
<divid="treeitem_selected_true"role="treeitem"aria-selected="true">This treeitem has aria-selected="true" and should get STATE_SELECTABLE. It should also get STATE_SELECTED.</div>
<divid="treeitem_selected_false"role="treeitem"aria-selected="false">This treeitem has aria-selected="false" and should get STATE_SELECTABLE.</div>
<divid="treeitem_selected_empty"role="treeitem"aria-selected="">This treeitem has aria-selected="" and should <emph>not</emph> get STATE_SELECTABLE.</div>
<divid="treeitem_selected_undefined"role="treeitem"aria-selected="undefined">This treeitem has aria-selected="undefined" and should <emph>not</emph> get STATE_SELECTABLE.</div>
<divid="treeitem_selected_absent"role="treeitem">This treeitem has <emph>no</emph> aria-selected attribute and should <emph>not</emph> get STATE_SELECTABLE.</div>
<divid="treeitem_haspopup_true"role="treeitem"aria-haspopup="true">This treeitem has aria-haspopup="true" and should get STATE_HASPOPUP.</div>
<divid="treeitem_haspopup_false"role="treeitem"aria-haspopup="false">This treeitem has aria-haspopup="false" and should get STATE_HASPOPUP.</div>
<divid="treeitem_haspopup_empty"role="treeitem"aria-haspopup="">This treeitem has aria-haspopup="" and should <emph>not</emph> get STATE_HASPOPUP.</div>
<divid="treeitem_haspopup_undefined"role="treeitem"aria-haspopup="undefined">This treeitem has aria-haspopup="undefined" and should <emph>not</emph> get STATE_HASPOPUP.</div>
<divid="treeitem_haspopup_absent"role="treeitem">This treeitem has <emph>no</emph> aria-haspopup attribute and should <emph>not</emph> get STATE_HASPOPUP.</div>
<divid="treeitem_expanded_true"role="treeitem"aria-expanded="true">This treeitem has aria-expanded="true" and should get STATE_EXPANDABLE. It should also get STATE_EXPANDED.</div>
<divid="treeitem_expanded_false"role="treeitem"aria-expanded="false">This treeitem has aria-expanded="false" and should get STATE_EXPANDABLE. It should also get STATE_COLLAPSED.</div>
<divid="treeitem_expanded_empty"role="treeitem"aria-expanded="">This treeitem has aria-expanded="" and should <emph>not</emph> get STATE_EXPANDABLE.</div>
<divid="treeitem_expanded_undefined"role="treeitem"aria-expanded="undefined">This treeitem has aria-expanded="undefined" and should <emph>not</emph> get STATE_EXPANDABLE.</div>
<divid="treeitem_expanded_absent"role="treeitem">This treeitem has <emph>no</emph> aria-expanded attribute and should <emph>not</emph> get STATE_EXPANDABLE.</div>