-
Notifications
You must be signed in to change notification settings - Fork 27
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
When is legend label for fieldset? #250
Comments
According to the |
I thought HTML-AAM should point out here that legend is only label for fieldset if it is the first child element. If it is not the first child element, it is ignored. Analogous to the distinction between header and footer scoped to the body element or not scoped to. |
Did you run any tests in which this breaks? |
I'm afraid I don't understand what tests you mean? An empirical test with Screenreader? I'm happy to do that if you wish. But the specification should be correct, regardless of the screenreader output. |
So far I've only tested the following: FreedomScientific/standards-support#233. But that doesn't include the question I raised here. See also: FreedomScientific/standards-support#100 |
I’m not entirely sure what the error is with HTML-AAM. Could you point to the section in the spec where you saw the error? 5.5.1 fieldset Element Accessible Name Computation reflects the HTML spec. Point four states that if the above conditions are false there is no accessible name. |
I didn't say it was an error. I was just wondering if the documentation should be more accurate:
If this is considered as not problematic, the ticket can be closed. I just thought the table should be as accurate as for header and footer. |
Checked the following file with JAWS 2019 and current Firefox ESR, IE 11, and Chrome:
|
closing this issue as there's no lack of clarity of how a That said, I will look into amending my WIP PR #232 to reference "first child" rather than just "child", to better match the HTML spec as per your second bullet in your opening question. Your third bullet in your latest comment isn't accurate, as the fieldset accessible name algorithm does state "...use the subtree of the first such element. " which indicates that legends after the first are ignored because the accessible name for the fieldset has already been determined. |
Let's be clear here though, stress testing how a browsers may expose and/or screen reader consumes invalid markup patterns is not indicative of a gap how HTML elements are mapped. |
It's true: The bugs also occur for things that are correctly specified in the specification, see FreedomScientific/standards-support#315. |
My comment refers as written to https://w3c.github.io/html-aam/#html-element-role-mappings and not to https://w3c.github.io/html-aam/#fieldset-element-accessible-name-computation where it is halfway correct. And the table says (as described in detail in my very first statement):
|
I didn't. If anything I was saying that invalid markup patterns are to blame.
In that case not related to HTML AAM. Bugs with browsers or AT or both. It's good to try and determine which exactly so issues are filed in the correct place.
I know what your comment was referring to, but the opening of that section states:
In other words, you have to look to both sections to get the full picture. |
For legend is defined:
I wonder if that's correct, since it doesn't make any statement about what happens
The text was updated successfully, but these errors were encountered: