Skip to content

Add explicit language and direction metadata to AriaNotificationOptions #2828

Description

@xfq

Description of bug or feature request

https://www.w3.org/TR/wai-aria-1.3/#ARIANotifyMixin

ariaNotify(announcement, options) can be used to notify people who are blind or have low vision, identifying dynamic changes in the content, but it creates a natural-language string outside normal DOM text content.

The current AriaNotificationOptions only carries priority and does not carry language or string direction. The i18n requirement is that natural-language string fields must have determinable language and direction, preferably from metadata.

Please add explicit language and direction metadata to AriaNotificationOptions. For example:

enum AriaTextDirection { "ltr", "rtl", "auto" };

dictionary AriaNotificationOptions {
  AriaNotifyPriority priority = "normal";
  DOMString lang;
  AriaTextDirection dir = "auto";
};

Authors should provide lang when the announcement language differs from the language of the node or document. They should also provide dir when the string direction is known. And user agents should expose the language and direction metadata to platform accessibility APIs where the platform supports it.

Will this require a change to CORE-AAM?

Will this require a change to the ARIA authoring guide?

Metadata

Metadata

Assignees

Labels

Agendai18n-needs-resolutionIssue the Internationalization Group has raised and looks for a response on.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions