LibWeb: Make aria-relevant and ariaRelevant reflect #1238
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change makes the
aria-relevant
content attribute and theariaRelevant
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 theariaRelevant
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 ourARIAMixin
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.