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

Expose grammar errors from IAccessible2 text. #8280

Merged
merged 1 commit into from Jun 13, 2018
Merged

Conversation

michaelDCurran
Copy link
Member

Link to issue number:

None.

Summary of the issue:

As well as spelling errors, IAccessible2 implementstions can also expose grammar errors. This may be through built-in support in the app itself, or conveyed by the author via aria-invalid="grammar".
However, NVDA only looks for spelling errors from IAccessible2, not grammar errors.
Grammar errors in UIA are already supported.

Description of how this pull request fixes the issue:

NVDA now supports the IAccessible2 text attribute: invalid:grammar, and maps it appropriately as the invalid-grammar=True attribute on formatFields so that it is spoken similar to spelling errors.

Testing performed:

Using following html testcase:
invalidText.html.txt
Tested in Firefox to ensure that NVDA announced grammar error at the appropriate place. (at the position of the second "to ").
Chrome does not yet expose grammar errors.

Known issues with pull request:

None.

Change log entry:

New features:
NVDA will report grammar errors when appropriately exposed by web pages in Mozilla Firefox.

@derekriemer
Copy link
Collaborator

Approve.

@Brian1Gaff
Copy link

Brian1Gaff commented May 16, 2018 via email

Copy link
Collaborator

@LeonarddeR LeonarddeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might this also work with LibreOffice? Probably not...

@LeonarddeR LeonarddeR added the component/text-info TextInfo objects and text review label May 18, 2018
michaelDCurran added a commit that referenced this pull request May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/text-info TextInfo objects and text review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants