Skip to content

Expose grammar errors from IAccessible2 text.#8280

Merged
michaelDCurran merged 1 commit into
masterfrom
ia2GrammarError
Jun 13, 2018
Merged

Expose grammar errors from IAccessible2 text.#8280
michaelDCurran merged 1 commit into
masterfrom
ia2GrammarError

Conversation

@michaelDCurran

Copy link
Copy Markdown
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.

@michaelDCurran michaelDCurran requested a review from feerrenrut May 16, 2018 05:57
@derekriemer

Copy link
Copy Markdown
Collaborator

Approve.

@Brian1Gaff

Brian1Gaff commented May 16, 2018 via email

Copy link
Copy Markdown

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

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.

6 participants