The gist of it is to test that the explicit role is allowed on the element. This would test requirements outlined in HTML in ARIA
https://www.w3.org/TR/html-aria/#docconformance
Example: <button role="heading"> would not be allowed because the button element is only allowed to have certain roles.
The gist of it is to test that the explicit role is allowed on the element. This would test requirements outlined in HTML in ARIA
https://www.w3.org/TR/html-aria/#docconformance
Example:
<button role="heading">would not be allowed because thebuttonelement is only allowed to have certain roles.