forked from WebKit/WebKit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assign generic role to aside tag within the sectioning content elements
https://bugs.webkit.org/show_bug.cgi?id=235065 rdar://problem/87391915 Reviewed by Tyler Wilcock. This change assigns a generic ARIA role to <aside> elements when they are nested within <aside>, <article>, <section>, or <nav> elements, aligning with the spec (https://w3c.github.io/html-aam/#el-aside). This follows the discussion in w3c/html-aam#512 Additionally, it introduces a check to return LandmarkComplementary when an <aside> tag has an explicit accessible name. * LayoutTests/imported/w3c/web-platform-tests/html-aam/roles-contextual-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html-aam/roles-contextual.html: * Source/WebCore/accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::determineAccessibilityRoleFromNode const): Canonical link: https://commits.webkit.org/270509@main
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters