Skip to content

aria-invalid:spelling/grammar is not mapped correctly on macOS #254

@ffiori

Description

@ffiori

I'm currently working on AX support for CSS Custom Highlights on chromium and saw that there's no support for grammar errors on macOS (or at least I couldn't manage to make VoiceOver announce grammar errors in any app, please correct me if this is not the case).

In the codebase there's no mapping for aria-invalid from AXInvalid to 'spelling' or 'grammar' like in other platforms (UIA, IA2 and Linux correctly use those). Spelling errors are mapped to text attribute NSAccessibilityMarkedMisspelledTextAttribute, while grammar errors are not supported at all (I haven't found a similar text attribute to the spelling one either).

I tried modifying the code in chromium to map those to AXInvalid:'spelling' or 'grammar' but it's not recognized by VoiceOver.

Probably we should update CoreAAM docs? Or I'm not sure if this is something that's pending on macOS?

@cookiecrook any thoughts on this?

cc @benbeaudry

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions