accname icon indicating copy to clipboard operation
accname copied to clipboard

2E "unless the element is marked as presentational" is unclear

Open JAWS-test opened this issue 4 years ago • 3 comments

Otherwise, if the current node's native markup provides an attribute (e.g. title) or element (e.g. HTML label) that defines a text alternative, return that alternative in the form of a flat string as defined by the host language, unless the element is marked as presentational (role="presentation" or role="none").

In my opinion, the following problems arise here:

  • there is no statement what is with implicit role=presentation (example 3, 4).
  • there is no statement whether the role=presentation must be at the current node or at the "element that defines a text alternative" for the exception to apply (example 2. 3)
  • there is no statement what happens if the element has role=presentation but the role=presentation itself is ignored because of the many exceptions (example 1)

This is problematic because this is currently interpreted differently by browsers and AccName Prototype Test (see the examples)

JAWS-test avatar Feb 07 '21 02:02 JAWS-test

@JAWS-test do you think these issues are a side effect of invalid code, or did the implementors genuinely not understand the spec?

MelSumner avatar Apr 13 '21 14:04 MelSumner

@MelSumner Neither nor. If the specification is unclear, every browser does what it thinks. The specification should be clear, then the browsers know how to do it right.

JAWS-test avatar Apr 13 '21 15:04 JAWS-test

Updated the title due to the re-ordering in #122

MelSumner avatar Apr 30 '21 20:04 MelSumner