Skip to content

Commit

Permalink
MSHTML NVDAObject's name property: ignore accname from IE for dialogs…
Browse files Browse the repository at this point in the history
… as it is always just incorrectly calculated from descendants including hidden text.
  • Loading branch information
michaelDCurran committed Apr 30, 2015
1 parent 410b90b commit 570c290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/NVDAObjects/IAccessible/MSHTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def _get_name(self):
if (
self.HTMLNodeHasAncestorIAccessible or
#IE inappropriately generates the name from descendants on some controls
self.IAccessibleRole in (oleacc.ROLE_SYSTEM_MENUBAR,oleacc.ROLE_SYSTEM_TOOLBAR,oleacc.ROLE_SYSTEM_LIST,oleacc.ROLE_SYSTEM_TABLE,oleacc.ROLE_SYSTEM_DOCUMENT) or
self.IAccessibleRole in (oleacc.ROLE_SYSTEM_MENUBAR,oleacc.ROLE_SYSTEM_TOOLBAR,oleacc.ROLE_SYSTEM_LIST,oleacc.ROLE_SYSTEM_TABLE,oleacc.ROLE_SYSTEM_DOCUMENT,oleacc.ROLE_SYSTEM_DIALOG) or
#Adding an ARIA landmark or unknown role to a DIV or NAV node makes an IAccessible with role_system_grouping and a name calculated from descendants.
# This name should also be ignored, but check NVDA's role, not accRole as its possible that NVDA chose a better role
# E.g. row (#2780)
Expand Down

0 comments on commit 570c290

Please sign in to comment.