-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification regarding explicit allowed role for section elements #505
Comments
@giacomo-petri if you look at the role definition in the ARIA spec https://www.w3.org/TR/wai-aria-1.2/#generic it states
|
Thanks for the feedback @stevefaulkner, my inquiry is as follows:
OR
(which to me seems more consistent with other statements for other HTML elements) |
Sorry, got it. I'm closing this ticket. |
Reopening for further clarification. In certain cases, the directive to "SHOULD NOT be used" is not explicitly applied to the
Would it be more clear to eliminate the individual instances of the Otherwise, it appears that depending on the implicit role of the element, there are instances where its use might be acceptable. |
the ARIA spec already states that role=generic should not be used by developers. if we stated that here again, we would just be duplicating the existing rule in the ARIA spec. |
@scottaohara, I would agree with you not duplicating the existing rule in the ARIA spec, but I'm still missing something. For instance, in cases like the
On the other hand, scenarios like
I suggest maintaining consistency across requirements for various HTML elements to prevent confusion and misinterpretation. In essence, the use of the generic role is discouraged for certain HTML elements, while for others, it is not explicitly mentioned. Is there a distinction between the two scenarios that I might have overlooked? |
you're noticing that for the elements where generic is either the implicit role, or one of the implicit roles, it is specifically called out as should not be used. but for instances where it is not an implicit role, it is not called out. |
Appreciate it, @scottaohara, Feeling a bit weary :D, so not entirely sure about my confusion source. Perhaps I anticipated a statement for the section element, similar to other scenarios:
Additionally, the list item element might benefit from mentioning the "generic" statement when the implicit role is generic (for consistency). Nevertheless, it's a minor note. Closing the ticket. |
yah, there is an inconsistency with the list item one. i wonder, would you find it better if
in the paragraphs that introduce the usage table |
In my view, simplicity and clarity are enhanced by confining the Any role definition to the paragraphs introducing the usage table. This approach may also foster greater consistency, eliminating the need to explicitly caution against using the generic role for each element with a generic implicit role. In my perspective, stating that the generic role SHOULD NOT be applied to elements with implicit generic roles, while not applying the same caution to other elements with an "Any role," particularly when these elements are consecutive, could lead to more confusion than clarity. |
thanks @giacomo-petri |
In the "ARIA Attribute Usage by HTML Element Rules" table, the "ARIA Role, State, and Property Allowances" related to the
<section>
element specifies the following:Are we implying that, despite discouraging the use of "generic," it is permissible to designate a section with an accessible name (thus having an implicit role="region") as a generic container by explicitly setting role="generic"?
Alternatively, are we asserting that the explicit role="generic" is prohibited for section elements with an accessible name?
Does the statement "should not be used" only apply when the implicit role is generic, as is the case with other HTML elements where the explicit role mirrors the implicit role?
I think it would be beneficial to provide clarification on this aspect.
The text was updated successfully, but these errors were encountered: