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

Reflecting IDREF/IDREF list ARIA attributes to element references #200

Closed
alice opened this issue Sep 4, 2019 · 5 comments · Fixed by #983
Closed

Reflecting IDREF/IDREF list ARIA attributes to element references #200

alice opened this issue Sep 4, 2019 · 5 comments · Fixed by #983
Labels
position: positive venue: WHATWG Specifications in a WHATWG Workstream

Comments

@alice
Copy link

alice commented Sep 4, 2019

Request for Mozilla Position on an Emerging Web Specification

Other information

This will allow ARIA relationship attributes to be set more easily via JavaScript, and in particular will allow setting ARIA relationship attributes which work across Shadow DOM boundaries (with limitations).

el.ariaDescribedByElements = [labelElement1, labelElement2];
el.ariaActiveDescendantElement = ownedElement1;

This is currently being implemented in Blink.

We are planning to ship this alongside Default Accessibility Semantics for Custom Elements.

@dbaron
Copy link
Contributor

dbaron commented Sep 4, 2019

cc @annevk @jcsteh.

@annevk annevk added the venue: WHATWG Specifications in a WHATWG Workstream label Sep 25, 2019
@annevk
Copy link
Contributor

annevk commented Sep 25, 2019

In general we've been supportive of this as similar to #201 it helps with accessibility of web components, but it's not entirely clear what the design should be around tree mutation. Alice filed whatwg/html#4925 to track that.

@alice
Copy link
Author

alice commented Jan 31, 2024

Greetings from 2024. This is now shipping in Safari, and I'm planning to propose shipping it in Blink. The spec text has been stabilised and merged: https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:element

I realise this is still under discussion at Mozilla, but would it be possible to get an update here about the state of those discussions?

Thanks!

@jcsteh
Copy link
Contributor

jcsteh commented Feb 1, 2024

Overall, we're supportive of this.

As we've discussed, @alice, I still think it's unfortunate that we're going to need two (hopefully not more) very different concepts to express ARIA relationships across shadow DOM boundaries. That complicates things across the board; browser implementations, authors understanding which to choose when, etc. There's also no way we can do element reflection (currently the proposed solution for referring out of a shadow root from inside of it) declaratively, and declarative seems to be a priority for some.

That said, I'm mindful of the need to (finally) make progress on a solution to a significant gap confronting authors right now. We haven't managed to come up with a single concept that solves all the things, and even if we did, it'd probably be super complex and unwieldy, which is perhaps just as much of a problem. Also, we need this for ElementInternals, plus PopoverTargetElement is already implemented across three browser engines which provides the groundwork for element reflection. So, despite my reservations, I think doing this is the most pragmatic path.

Thanks @alice for taking the time to discuss this with me in December. That helped me greatly in beginning to figure out a path forward here.

@martinthomson
Copy link
Member

@jcsteh do you think that you could draft a position for us and suggest a choice of position? I can't really work out whether you might prefer positive or neutral in this case, though with your reservations, I'm guessing that neutral is safer.

jcsteh added a commit to jcsteh/standards-positions that referenced this issue Feb 7, 2024
jcsteh added a commit to jcsteh/standards-positions that referenced this issue Feb 7, 2024
martinthomson pushed a commit that referenced this issue Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
position: positive venue: WHATWG Specifications in a WHATWG Workstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants