Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb: Make aria-relevant and ariaRelevant reflect #1238

Conversation

sideshowbarker
Copy link
Contributor

@sideshowbarker sideshowbarker commented Sep 1, 2024

This change makes the aria-relevant content attribute and the ariaRelevant IDL/DOM attribute reflect — which makes the Ladybird behavior interoperable with the implemented behavior in other existing engines.

Otherwise, without this change, Ladybird fails the relevant test case in https://wpt.fyi/results/html/dom/aria-attribute-reflection.html — which other existing engines all pass.

Note that at https://w3c.github.io/aria/#ARIAMixin the ARIAMixin IDL definition in the current ARIA spec actually lacks the ariaRelevant attribute — but I’ve raised w3c/aria#2326 to get that fixed.

And note that this change doesn’t actually add support for the aria-relevant — because we already have support for it; the only thing that was missing was that it wasn’t in our ARIAMixin IDL.

Finally: This change also adds a related new in-tree test for ARIA attribute reflection (for all attributes in the current canonical ARIA spec at https://w3c.github.io/aria/). It’s just a port of https://wpt.fyi/results/html/dom/aria-attribute-reflection.html over to our in-tree test harness. Some of the tests currently fail — but that’s expected because we haven’t yet added support for them. But I can add them in a follow-up PR — and after that, all those tests will be green.

This change makes the aria-relevant content attribute the ariaRelevant
IDL/DOM attribute get reflected — which makes the Ladybird behavior
interoperable with the implemented behavior in other existing engines.

Otherwise, without this change, Ladybird fails the relevant test case in
https://wpt.fyi/results/html/dom/aria-attribute-reflection.html — which
other existing engines all pass.
@sideshowbarker sideshowbarker force-pushed the make-aria-relevant-get-reflected-as-ariaRelevant branch from bedd759 to bf9ef53 Compare September 1, 2024 08:21
@sideshowbarker sideshowbarker changed the title LibWeb: Make aria-relevant get reflected as ariaRelevant LibWeb: Make aria-relevant and ariaRelevant reflect Sep 1, 2024
Copy link
Member

@AtkinsSJ AtkinsSJ left a comment

Choose a reason for hiding this comment

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

👍

@AtkinsSJ AtkinsSJ merged commit a924e87 into LadybirdBrowser:master Sep 6, 2024
6 checks passed
@sideshowbarker sideshowbarker deleted the make-aria-relevant-get-reflected-as-ariaRelevant branch September 6, 2024 13:16
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.

2 participants