Closed Bug 1880578 Opened 2 years ago Closed 1 year ago

Ignore use of aria-hidden=true on root doc elements (e.g., html and body elements)

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: scottaohara, Assigned: morgan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The ARIA spec is updating with a new requirement where user agents must ignore the aria-hidden=true attribute when used on the HTML or BODY element of a web page.

The specific text:

To prevent authors erroneously hiding entire window-rendered documents only to those using assistive technology, user agents MUST NOT expose the hidden state to assistive technologies if it is specified on the root element or the host language element that represents the contents of the primary document in view. For instance, the html or body elements in an HTML document, or the root svg element if it is rendered as its own primary document in the browser window. If authors were to specify aria-hidden="true" on the opening tag for an embedded document, for instance on a math or svg embedded within an HTML document, user agents would still be expected to hide these elements from assistive technologies.

A basic test case, such as, would result in no ignored elements, as the aria-hidden=true on the html element would be ignored.

<html lang=en aria-hidden=true> <h1>hello world</h1> <p>my content</p> <a href=#>a hyperlink</a> </html>
ARIA PR 1880 - https://github.com/w3c/aria/pull/1880

Blocks: aria
Type: defect → enhancement
Component: Disability Access → Disability Access APIs
Product: Firefox → Core
Blocks: aria-hidden
No longer blocks: aria
See Also: → 1944935
Assignee: nobody → mreschenberg
Attachment #9475217 - Attachment description: Bug 1880578: Ignore aria-hidden when applied to root document elements and root svg elements r?Jamie → WIP: Bug 1880578: Ignore aria-hidden when applied to root document elements and root svg elements r?Jamie
Attachment #9475217 - Attachment description: WIP: Bug 1880578: Ignore aria-hidden when applied to root document elements and root svg elements r?Jamie → Bug 1880578: Ignore aria-hidden when applied to root document elements and root svg elements r?Jamie
Depends on: 1960045
See Also: → 1960416
Pushed by mreschenberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba578bd7c5cc Ignore aria-hidden when applied to root document elements and root svg elements r=Jamie
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: