Support aria-roledescription in Edge.#8449
Conversation
|
Hi, Testing shows it is working as expected. I may need to test it on multiple Windows 10 releases to see which one added this property for Edge nodes. Thanks. |
|
CC @tgeczy |
|
I tested some of the examples from the ARIA examples page and found the following.
Note that this also is the case in firefox. In edge, the section variant of slide reports correctly, whereas in edge it still reports region redundantly. Another thing you might be able to fix as part of this, is that roletext seems to be entirely ignored for braille. |
|
Hi, Marco Zehe (Mozilla) says: Hi Joseph! I am just now trying out the try build you posted earlier. Here are two observations regarding aria-roledescription in Edge. I am using this examples page: http://www.ets-research.org/ia11ylab/aria11spec/
And a more general observation, even outside the examples, every heading gets the "clickable" spoken, on this page, but also my blog and other pages. Message end. JL: I believe the first issue was also raised by someone. Thanks. |
…ot going to be already presented as part of the field.
…grouping, paragraph or section currently). This ensures that they are appropriately presented as containers when roledescription is used.
|
I believe I have now addressed the most recent issues.
|
LeonarddeR
left a comment
There was a problem hiding this comment.
I will do some testing with braille later today.
| field=super(EdgeTextInfo,self)._getControlFieldForObject(obj,isEmbedded=isEmbedded,startOfNode=startOfNode,endOfNode=endOfNode) | ||
| field['embedded']=isEmbedded | ||
| role=field.get('role') | ||
| # Fields should be treeted as block for certain roles. |
| return " ".join(textList) | ||
|
|
||
| def getControlFieldBraille(self, field, ancestors, reportStart, formatConfig): | ||
| def getControlFieldBraille(self, field, ancestors, reportStart, formatConfig,reason=None): |
There was a problem hiding this comment.
Is this extra reason kwarg ever used and different than None? I'd say you can also just pass reason=None to field.getPresentationCategory
LeonarddeR
left a comment
There was a problem hiding this comment.
This looks ok to me, also from my braille display :)
There is one major thing I found, namely that by default, roles don't seem to show up in Edge browse mode at all, unless you're using quick nav. However, that is completely unrelated to this issue. Just making note of it for future reference.
Link to issue number:
Fixes #8448
Summary of the issue:
Web authors can provide an aria-roledescription property to customize the way the type (role) of an element is announced/brailled in Assistive technologies. NVDA supports this already for Chrome/Firefox/IE but not Edge.
Description of how this pull request fixes the issue:
Implements support for aria-roledescription in Edge for both focus and browse mode.
This PR also now:
Testing performed:
Tested example from #8448 in Edge.
Known issues with pull request:
None.
Change log entry:
Existing what's new for aria-roledescription should be updated to mention Edge, if this is merged before 2018.3.
Section: New features, Changes, Bug fixes