Re: [WICG/webcomponents] Reference Target naming (Issue #1087)

To me `commandFor` is part of a sentence: "button `foo` is a[n open] `commandFor` popover `bar`" -> `<button id="foo" commandfor="bar">`.  I can't quite see how to map that on to what `referenceTarget` is doing - what did you have in mind?

I agree that `id` seems like it might be a bit too specific in the event that we do develop another way to target elements for references. `forwarding` definitely does match my mental model of what the attribute is doing, though, although to me "forwarding" implies a boolean state, rather than .

One more pitch for `delegate`: there is a related problem which we deliberately (and correctly) scoped out here, but which we might want to revisit eventually, and that is that we might want to allow authors to ["move" applicable attributes](https://github.com/WICG/webcomponents/issues/1073 ) on the host, like `role`, to a designated element within the shadow root. If we did eventually investigate a parallel API for that capability, I think `delegate` would be a natural fit there.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1087#issuecomment-2513144039
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1087/2513144039@github.com>

Received on Monday, 2 December 2024 22:51:33 UTC