Skip to content
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

Relation to HTML-AAM not obvious #8

Open
xi opened this issue Mar 9, 2018 · 4 comments
Open

Relation to HTML-AAM not obvious #8

xi opened this issue Mar 9, 2018 · 4 comments
Milestone

Comments

@xi
Copy link

xi commented Mar 9, 2018

I was not sure whether to post this issue on accname or html-aam, so maybe it needs to be moved.

The HTML Accessibility API Mappings (html-aam) document has a long section on Accessible Name and Description Computation that overwrites some aspect of this specification. This is not obvious when reading the accname specification. I think a note should be added.

On top of that, splitting the algorithm across two documents makes it even more complex. I understand that this is necessary to split out the bits that are specific to HTML. But it leads to some strange results. Consider the following example:

<input type="text" title="test" hidden />
  • If you ignore html-aam, rule 2A applies and the empty string is returned.
  • If you do not ignore html-aam, the accname algorithm is completely ignored (because no aria-label or aria-labelledby attribute is present) and the title "test" is returned instead.

I am not sure if this effect is intentional.

@jnurthen jnurthen added this to the 1.2 milestone May 29, 2018
@jnurthen
Copy link
Member

related #11

@stevefaulkner
Copy link

@xi this is an interesting one. In Firefox/chrome/Edge on windows 10 the hidden attribute removes the input from the accessibility tree, so the name calculation is moot. In IE11 hidden does not remove the input from the acc tree, but exposes it with an invisible state. The acc name for the input is still derived from the title attribute in this case.

test case

@xi xi changed the title Relation to HTML-AAM not obious Relation to HTML-AAM not obvious Aug 22, 2018
@zcorpan
Copy link
Member

zcorpan commented Sep 2, 2018

I think accname should either have a general language-agnostic algorithm with clear hooks for each language to define the relevant steps, or accname should just contain everything (HTML, SVG, what else?). The current setup with two conflicting specs is confusing, I can't tell what the expected behavior should be for e.g. this test case:

<fieldset title="Foo" aria-labelledby="nosuch">
 <legend></legend> <!-- empty -->
</fieldset>

In Safari and Chrome, the accessible name is "", in Firefox and Edge it is "Foo".

@xi
Copy link
Author

xi commented Dec 28, 2018

related minutes from TPAC 2018: https://www.w3.org/2018/10/25-aria-minutes#item05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants