Skip to content

Assign generic role to aside tag within the sectioning content elements#20013

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
joone:a11y/aside_complementary
Nov 10, 2023
Merged

Assign generic role to aside tag within the sectioning content elements#20013
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
joone:a11y/aside_complementary

Conversation

@joone
Copy link
Copy Markdown

@joone joone commented Nov 5, 2023

47f7dec

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

131b7bc

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🛠 gtk
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🧪 gtk-wk2
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv ✅ 🧪 mac-AS-debug-wk2
✅ 🛠 tv-sim ✅ 🧪 mac-wk2-stress
✅ 🛠 🧪 merge ✅ 🛠 watch
✅ 🛠 watch-sim

@webkit-early-warning-system
Copy link
Copy Markdown
Collaborator

webkit-early-warning-system commented Nov 5, 2023

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 5, 2023
@joone joone force-pushed the a11y/aside_complementary branch from 3bde303 to 66b603a Compare November 6, 2023 04:08
@joone joone force-pushed the a11y/aside_complementary branch from 66b603a to 84a3800 Compare November 6, 2023 19:56
Copy link
Copy Markdown
Contributor

@twilco twilco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! Left some comments.

@joone joone force-pushed the a11y/aside_complementary branch from 84a3800 to ee661cc Compare November 8, 2023 08:16
@joone joone requested a review from twilco November 8, 2023 20:54
Copy link
Copy Markdown
Contributor

@twilco twilco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there!

@joone joone force-pushed the a11y/aside_complementary branch from ee661cc to 131b7bc Compare November 10, 2023 00:41
Copy link
Copy Markdown
Contributor

@twilco twilco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @joone!

@twilco twilco added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Nov 10, 2023
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
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 270509@main (47f7dec): https://commits.webkit.org/270509@main

Reviewed commits have been landed. Closing PR #20013 and removing active labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants