A slottable's assigned slot is never reset #1352
Labels
editorial
Changes that do not affect how the standard is understood
topic: shadow
Relates to shadow trees (as defined in DOM)
What is the issue with the DOM Standard?
When assigning slottables for a slot, the spec updates the assigned slot of any slottable that is added to the slot in
However, the assigned slot of any slottables that were previously assigned to the slot but aren't anymore won't change. I would expect a slottable's assigned slot to be null if that slottable is not also part of that slot's assigned nodes.
I'm not sure if this is intended, because the
assignedSlot
getter for slottables seems to work around it by calling find a slot.This is causing extra work in algorithms like Node::remove:
If the node was previously removed from a slot (but keeps a nonnull assigned slot) then this won't do anything.
The text was updated successfully, but these errors were encountered: