Repository navigation
Shadow: define slotchange event - #229
Conversation
Fixes WICG/webcomponents#288. This defines the slotchange event in response to remove/insert operations, changes to a slot’s name attribute, and changes to an element’s slot attribute. This also introduces the assigned nodes concept for slots, and assigned slot concept for slotables. Slotables now also have a name, rather than a “get name”. The slotchange event dispatches just after mutation observers.
|
Things I'm not happy with:
These also seem related. The call for "signal a slot change" should probably move into "assign slotables" somehow. |
|
I am now reasonably happy. |
|
Looks good to me. Awesome work! One nitpick:
I guess that's unintentional. BTW, you added me to dom repository, but it looks I can not merge this PR. |
|
I wasn't sure whether removing should suppress events, I will add that. As for the repository, you should now be able to create branches on this repository and update them. As well as assign and modify issues, etc. The master branch is a bit more controlled since it affects our publication process. Hope that's acceptable. |
Neither nor I. I have no idea which is better. For now, suppressing sounds natural. I might give feedback later when I get something.
I am fine. Thank you for the explanation! |
Fixes WICG/webcomponents#288.
This defines the slotchange event in response to remove/insert
operations, changes to a slot’s name attribute, and changes to an
element’s slot attribute.
This also introduces the assigned nodes concept for slots, and assigned
slot concept for slotables.
Slotables now also have a name, rather than a “get name”.
The slotchange event dispatches just after mutation observers.