Skip to content

Spec is unclear on aria-invalid="spelling" | "grammar" uses #989

@aleventhal

Description

@aleventhal

The original intention of aria-invalid="grammar" or "spelling" is unclear from the ARIA spec, although clear from CORE-AAM. So the two are not really in sync.

Reading the spec, one would not necessarily understand this use case:

<div contenteditable spellcheck="false">
  <p>The evil <span aria-invalid="spelling">grammur</span> dictators are on <span aria-invalid="grammar">you're</span> back today!</p>
</div>

This allows apps such as online word processors or email clients to implement their own server-based spelling and grammar checking, and expose that to screen readers. This was the original intention of this markup (I was there proposing it and implementing), but it's unclear from the spec text, which is unfortunate.

If you look at CORE-AAM, it has special lines for "grammar" and "spelling" so that the proper text attributes are exposed to screen readers. This matches the expected ATK/IA2 output here: https://wiki.linuxfoundation.org/accessibility/iaccessible2/textattributes

Metadata

Metadata

Assignees

Labels

clarificationclarifying or correcting language that is either confusing, misleading or under-specified

Type

No type

Projects

Status

Scott O'Hara

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions