-
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
Need clarity on missing/invalid ARIA attribute values #777
Comments
I can't find any reference to case sensitivity in the ARIA spec. If you think it is there can you point me to where? ARIA in HTML states clearly that values ARE case sensitive https://www.w3.org/TR/html-aria/#case-sensitivity when using ARIA in HTML.
This is covered at https://w3c.github.io/aria/#state_property_processing
Nor can I - we need to deal with this - unless someone else can point to the text. |
The ARIA in HTML reference is a requirement for authors, not for user agents. It'd be nice to see a clear requirement for user agents. I know that both WebKit and Blink do case-insensitive comparisons for ARIA attribute values like "true", "false", "mixed", "inline", etc. - if this is wrong we should clarify it and report it as a bug. It looks like Firefox is case-sensitive in most cases but I'll have to do more checking. |
@minorninth is correct, the author requirement was added when I found interop issues amongst browsers/AT with non lower case values. At the time I also filed bugs (can' remember details at this time). |
@stevefaulkner I agree. This should be defined. I can’t find a logged issue against the aria spec (other than this one). If there is a previous issue can you please point to it as there might be important history there. |
@jnurthen don't think i filed a bug against ARIA spec, think it was on browsers/AT to better support mixed case values. |
@jnurthen here is a related JAWS bug and this Firefox bug has further details, which may be of interest |
Copying #976 (closed as duplicate of this one) so we don't lose sight of it:
|
Is this issue irrelevant now that we have this section deferring to the HTML processing, or are there remaining problems like case-sensitivity? https://w3c.github.io/aria/#idl-reflection-attribute-values |
I believe this is still relevant. This is entirely about the content attributes, not about the IDL reflection. |
@domenic left some comments on ARIA reflection here: WICG/aom#117 - I'm going to try to copy the relevant sections.
I think the ARIA spec clearly says that attribute values are not case-sensitive, and that empty strings should be treated the same as missing strings.
However, I can't find any clear language on how invalid values should be treated.
I believe this is what was intended and how most browsers behave now, but we should maybe clarify this.
It's not clear whether we want these properties to "validate" and limit themselves to only known values. My main concern there is that some browsers like Firefox pass through many ARIA attributes unmodified, allowing authors to try out new proposed attribute values before they're official. Forcing the browser to validate these attribute values would possibly be a departure from past expectations. So I might lean towards not validating.
I think this one is easy: the ARIA spec already says that empty strings are the same as no attribute.
The text was updated successfully, but these errors were encountered: