-
Notifications
You must be signed in to change notification settings - Fork 22
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
General Questions #58
Comments
Which ARIA attributes you can use on which elements can be found in either the ARIA specifications or in ARIA in HTML. According to ARIA in HTML both According to the ARIA spec
If we switch back to ARIA in HTML we’ll see that the
Can you explain this a bit more (in German if necessary)? I’m not quite sure what you mean.
According to the note in Step 2D in AccName:
As far as I know support for this is generally buggy tho.
Can you provide a test case for this?
Perhaps this was omitted because the @joanmarie @scottaohara can either of you answer this?
In short: no. Note: This would be a terrible practice to provide an accessible name for an element. Step H in the accessible name calculation reads:
So if As a general note: can I ask why you ask all of these questions? While I’m sure none of us mind answering questions about the specifications from time to time. It would be nice if we knew why we’re investing a lot of time answering your questions. As an example of this: it took me roughly an hour to look into all of your questions you posted here today. At consultancy rates the information above would’ve cost you upwards of €150 😉. If you want to help improve the specifications you might want to look at joining one of the working groups that maintain them. If on the other hand you simply want to learn more about them it might be best to join a developer orientated forum. As another aside, could you please use markdown’s link notation when posting links: |
AccName #17 was already made and contains discussion and link to the HTML AAM discussion about including placeholder and aria-placeholder attributes in the spec. As an FYI concerning This will mean that HTML elements such as So documents such as HTML AAM and ARIA in HTML will be updated accordingly as is alluded to in the June 27th accName change log:
|
Hi @ZoeBijl and @scottaohara
I don't see that in the table. This information is not in the row with "presentation". On the contrary, I know that aria-label overrides role=presentation
I think this is wrong (see w3c/aria#1042), but it seems to me to be like this
If the elements can be labeled by content, AccName should be "12" for the first and "1 2" for the second. This also applies to b, strong, em, mark, i, sup, sub and many others inline elements (without space) and p, section, article and many others block elements (with space). I didn't find this rule in AccName and am not sure if it is missing or if I just missed it (see also #3 and w3c/html-aam#183)
First and foremost I want to improve AT by reporting mistakes. I can only do this if I understand what mistakes are. If the specification is inaccurate, it doesn't seem to be a bug of AT if it doesn't output something correctly.
Can I always label an HTML element with ARIA attributes? Can I always label an ARIA element with HTML attributes?
I'm asking because this technology mix partly leads to wrong output by the screenreader. I thought the mix of HTML and ARIA was allowed without restrictions, but I wasn't sure
Yeah, that was my mistake. Unfortunately, I didn't read the specification exactly enough at this point.
My first question wasn't about which elements I can label with aria-label, but about which elements the specification applies to at all? For example, I can label each element with title. If AccName is not only valid for interactive elements (as I thought before), but for all elements, then the AccName of
should be "1". This means that if AT does not output the title attribute, this would be an error. Editor note: pease add your replies to a single comment in the future. Replying to everything in separate comments is not only an annoying way to read it. But also fills people’s mailboxes. |
@JAWS-test can you please put all your things in one comment?
Where does it say that in the specification? Can you link to it?
No.
No. These things are in the name calculation as well as the various other resources Scott and myself have linked to. Also, you can’t use numbers at the start of As a general note: filing issues is fine. But you are filing so many that we don’t have time to respond to all of them. And most of them are about super weird code and edge cases. Which can be a good thing. But right now most of this isn’t really helping us. Specifications generally specify what should be done—not what shouldn’t be done. If you want to help us there are a few things that need to change: First we need live code examples and test results. This means having something like a codepen with a test case and results for which browsers and AT (including version) you tested with. Then we’d like to know what exactly is wrong with which part of the specification (and which). Secondly we would prefer if you didn’t open three separate issues for what is essentially one bug report. Most accessibility related spec editors know each other and will contact each other when a good bug is reported. You reporting (essentially) the same bug in three different places probably means that three different people will have to invest time into the same thing. All in all this slows us down massively. When you file a bug in one place we can generally take it from there and file bugs in the relevant places when needed. We appreciate your enthusiasm in improving assistive technologies. And we’d like to harness that enthusiasm to do something productive. The way things are going right now are not productive. Is there another way we can contact you outside of GitHub? Because this isn’t really the right venue for this discussion. |
adding a bit more context, which continues my previous point in this thread and expands on a bit of what Zoë mentioned: An HTML ARIA can label (many) HTML elements, but as noted before, there are also many HTML elements that will map to a "generic" role, and that role, among others defined in ARIA, will be prohibited from receiving an accessible name. This means that your example of At this point, it seems to me that we've answered these general questions, so I am closing this issue as its more of a discussion topic than having action items at this point. |
I have some questions about https://w3c.github.io/accname:
img
) or also for elements without roles (likeimg role=presentation
,span
orimg
withinbutton
)? If the latter is true: can I also label aspan
odersvg
element witharia-label
?role=checkbox
labeled withlabel for
)title
element: does the text content not belong to the AccName - and withouttitle
element the text content becomes the AccName?span
element does not lead to a space in the AccName, but adiv
leads to a space?placeholder
is not mentioned in the specification, but in https://w3c.github.io/html-aam/#input-type-text-input-type-password-input-type-search-input-type-tel-input-type-email-input-type-url-and-textarea-element-accessible-name-computationBut according to https://whatsock.github.io/w3c-alternative-text-computation/Editable%20Live%20Input%20AccName%20Test.html it has not
The text was updated successfully, but these errors were encountered: