Originally Posted by VIPStephan
Apparently there is no way to check for the attribute, not for the state. Thanks for your thoughts, though.
PS. in JS, there is no need to check for the attribute, the state suffices as the browser doesn’t render the source code, but the document tree.