Tests:
Test 1
Authors MUST NOT use any role
or aria-*
attribute on the selectedcontent
element when it
is a valid child of the button
part of a customized select
element. Additionally authors MUST NOT use ARIA
attributes on the button
part of a customized select
element.
Expected result:
error or warn for inappropriate use of the role
and any aria-*
attribute when element is a
child of the button part of a customized select
element.
Test 2
The use of the selectedcontent
element outside of the context of the button part of a customizable select
element is invalid. But, to allow for a11y remediation of author misuse, ARIA attributes MAY be used on the element in this context.
Expected result:
while the use of the seletedcontent
element is incorrectly used in this example, the use of ARIA is allowed
so authors may correct for misuse of the element, thus no errors related to the use of ARIA attributes should be flagged in this case.