Best Practice:
Ensure ARIA roles, states, and properties are valid

Candidate Set:

Any element that has the aria-selected attribute

Except:

option elements
elements with the aria role="gridcell"
elements with the aria role="option"
elements with the aria role="row"
elements with the aria role="tab"
elements with the aria role="columnheader"
elements with the aria role="radio"
elements with the aria role="rowheader"
elements with the aria role="treeitem"
elements with the aria role="menuitemradio"

  
Will flag Aria selected
Will flag Aria selected (2)
A B C
Will not flag option
Will not flag role of gridcell
9 Qr Random
Xy ABC2 Cd
sdff ABC776 sdfdsfsd453fdsf
Will not flag role of option
3 5 9
Will not flag role of row
9 Qr Random
Xy ABC2 Cd
sdff ABC776 sdfdsfsd453fdsf
Will not flag role of tab
Tab 1 Tab 2 Tab 3
Will not flag role of columnheader
9 Qr Random
Xy ABC2 Cd
sdff ABC776 sdfdsfsd453fdsf
Will not flag role of radio
Option 1 Option 2 Option 3
Will not flag role of rowheader
9 Qr Random
Xy ABC2 Cd
sdff ABC776 sdfdsfsd453fdsf
Will not flag role of treeitem
Option 1 Option 2 Option 3
Will not flag role of menuitemradio
Option 1 Option 2 Option 3