-
Notifications
You must be signed in to change notification settings - Fork 126
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
Using the form’s role attribute #85
Comments
See w3c/aria#85 (It’s complicated) Also, the search input missed an id attribute.
@yatil I wonder why you're after laying it out like above were choosing to change to adding an extra DOM element Adding roles is already hard to get around for some developers (personally fighting for due to missing mapping to semantic elements by older browsers), but adding extra --otherwise superfluous-- DOM element seems illogical at best to many. |
Hi @Volker-E – Well, that is exactly what we want to find out here. At the moment specs seem to have no clear indication if |
Looks like this is resolved by @stevefaulkner here: w3c/html-aria#18. |
Can this be closed? |
I think so, feel free to close it. |
Well if it's fixed… Let's close it up :) |
closes #85 Removing allowance for `role=button` on `summary`.
section maps to region only if acc name, otherwise to div
There has been a twitter conversation that started by an Validator warning:
Now I know that it violates the second rule of ARIA use:
Yet the specifications do not facilitate that and there seems to be no indication that this behavior is wrong, for example:
form
role is “related” although the “Superclass Role” islandmark
and notform
.search
on forms by noting:<form role="search">
as an example.Now, a validator warning is not an error, and developers can chose to ignore it. On the other hand having
<form role="search">
seems to feel natural for many people (including me when I first heard about the search role a few years back).What one could do:
search
a subclass ofform
(if even possible) and get rid of the validator warning. (That may have implications in the current implementations of AT.presentation
, I suppose) for HTML5.1 and have the validator display an error.At least the WCAG technique should be changed to reflect best practices (see w3c/wcag#113)). There is no indication (but it hasn’t been sufficiently tested) that
<form role="search">
breaks AT support, but it feels like this is a glitch in the ARIA matrix that should be clarified.Related: See @aardrian’s blog post on this issue: Where to Put Your Search Role
(Thanks to the input @rogerjohansson, @aardrian, @LJWatson, @stevefaulkner, @cptvitamin and others.)
The text was updated successfully, but these errors were encountered: