Replies: 8 comments 11 replies
-
Related: w3c/accname#120 (comment) |
Beta Was this translation helpful? Give feedback.
-
https://w3c.github.io/aria/#document-handling_author-errors_states-properties states "User Agents MUST NOT expose an ARIA attribute to the platform accessibilty API when the element's computed role prohibits use of the attribute." |
Beta Was this translation helpful? Give feedback.
-
As I commented in w3c/html-aam#324 (comment):
|
Beta Was this translation helpful? Give feedback.
-
Trying to get this all sorted over in HTML AAM, and then speaking separately with @joanmarie and @jnurthen about this topic, I think we need to have a hard look at https://w3c.github.io/aria/#namecalculation - item 5
My recollection of prohibiting the naming of generic elements was NOT to prevent UAs from being able to name an element if need be (e.g., making a generic element focusable so something can be announced). Rather, it was to stop authors from naming generic elements and the like because of the rampant inconsistency of whether such practices would expose the name as the author intended. The second part of the prohibited item tracks with what I recall being the intent here. The first part "the element has no name." is the bit that I think is unclear/problematic. Does "the element has no name" really mean "UAs you are prevented from giving this a name" or "Authors you are prevented from giving this a name". The latter tracks with the second sentence for that item. |
Beta Was this translation helpful? Give feedback.
-
I think (3) makes sense because the computedRole should be "group", which allows a name. |
Beta Was this translation helpful? Give feedback.
-
Here is my current proposal, having worked on implementing this in Chromium (which covers all OSes and platform accessibility APIs) and also having discussions with various stakeholders:
|
Beta Was this translation helpful? Give feedback.
-
+1 to change the definition of "prohibited" under Accessible Name Calculation to say "the element does not support name from author". |
Beta Was this translation helpful? Give feedback.
-
It turns out that the "User Agents MUST NOT ...." statement isn't in 1.2 CR; it was added to 1.3. So we still have a problem, but we no longer have an emergency. 😁 I've opened #1476 for tweaking/qualifying that normative statement. |
Beta Was this translation helpful? Give feedback.
-
Section 5.2.8 Accessible Name Calculation states:
My questions:
Let's say an author does that (bad author!). What do we expect the user agents to do?
div
,div
withcontenteditable
, etc.)I ask first and foremost for CR Exit Criteria 1.2 tests: Do we even need tests for this?
But for now I'm assuming that we might want user agents to actually stop exposing the name. But then we have (at least) focusable
div
anddiv
withcontenteditable
.I think we can solve the
div
withcontenteditable
issue in the HTML-AAM by saying something a lacontenteditable
trumps the generic role.Beta Was this translation helpful? Give feedback.
All reactions