An interesting use of 'classList' is that it makes it easy to use css-classes to indicate the state of a dom-element. Is the element selected or not? Well does its classlist include the css-class 'selected'?
https://www.w3.org/WAI/PF/aria/states_and_properties#aria-se...