-
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
Rename getAssignedNodes()? #451
Comments
|
Does this mean that |
I do not like using find as the name of this web-exposed API. It would impress me that UA actually starts to find. I would like to avoid this. Thus, I prefer getter-like name here. If possible, omit get. How about Regarding, |
No good ideas for flat/distributed. |
Okay. My preference, as of now, is:
I am assuming that {Text/Element}.slot() is a bad idea because Element has a |
I don't think that I think |
Thanks. Then,
is okay to everyone? |
I think if we don't rename assignedSlot to slotNode or some such, I'm not sure we should rename the other one. Either we keep using "assigned" consistently (even though technically they're found) or we switch to something new. Maybe it's best to just preserve the status quo then. |
Given #288 I suspect assigned might become accurate after all since the evaluation won't be lazy in that case but a direct result of running the insert/remove algorithms. It would help if we could make a decision of sorts soonish there. It's still a little unclear to me when we use |
We should make a decision. Option A: Preserve the status quo
Option B: Remove
Option C: Use
I prefer option B. [Update: remove unnecessary parenthesis] |
It's assignedSlot btw, no parenthesis, just a getter. |
I agree with B, @rniwa? |
It's strange not to have "get" prefix IMO given other DOM APIs seem to have that. e.g. |
Is there a reason for keeping |
I think a method is preferred if it returns (non-live)
BTW, I forgot to mention that Slot.getAssingedNodes(...) is a method and {Text/Element}.assignedSlot is not a method in If we prefer get prefix for a method, I'm fine with Option A (Preserve the status quo), either. Thus, unless there is a strong preference, I would like to preserve the status quo. |
Yeah, we cannot do a getter for non-live lists. We don't want |
Unless there is a strong preference, I'll preserve the status quo (Option A). |
I'd prefer B since static lists don't have the "get" prefix thus far. |
Okay. Then, option B sounds the conclusion. Let me update the spec. |
findSlotables()
seems nicer and clearer it's a little expensive.findSlotables({distributed:true})
also seems a little clearer. Neither Shadow DOM nor DOM uses flatten for this algorithm.The text was updated successfully, but these errors were encountered: