-
Notifications
You must be signed in to change notification settings - Fork 378
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
Reference Target naming #1087
Comments
One comparison that gets made a lot is between "Delegates" is a verb in In fact, that was the name originally proposed: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md#alternative-names-for-the-feature-reference-target |
hm... how about |
Feels like anything specifically revolving around “id” flies in the face of W3C TAG wanting to find a path away from needing to rely on IDs to reference things across the DOM. 🤷🏼♂️ As a component author, I’ve no problems with Not to make a specific vote for it, but if a rename is required… in a world where |
To me I agree that One more pitch for I do agree that "delegate" does fail the "straightforward English" test, though. It's also easily confused with the verb "deleGATE". |
In the case that we could "move" While, I was not quite sure how to turn I can definitely get behind a value like |
I addition to being hard to understand, there has also been feedback that it's too long. Suggestions
|
I quite like I'll also note some potential prior art in Microsoft's Fluent UI system (React-based) which uses the term "primary slot" for the equivalent of the phase 1 API (plus the "Level 2" ideas Westbrook described): https://github.com/microsoft/fluentui/blob/511c32a4cd38fe82ade4677245b2424b323407fa/rfcs/convergence/native-element-props.md#introduce-the-concept-of-a-primary-slot |
There has been a reasonable amount of feedback that the name
referenceTarget
is difficult to understand.I think it's a reasonable name (ID references to the host should instead go to the designated target), but it might be good to see if we can come up with some alternatives.
One thing we should keep in mind is that if we choose to use separate attributes for each attribute for Phase 2, it would be nice to have a noun which can be used in combination with existing attributes (e.g. "shadowrootariaactivedescendanttarget").
The text was updated successfully, but these errors were encountered: