Captures all nodes not created by the webcomponent render, ideal for apply slot polyfill in LightDOM.
Where :
childNodes
: List of nodes that do not belong to the webcomponent render.
update
: Callback that forces a new childNodes
scan.
From the example we can highlight that the webcomponent will use all the children not created by the h1
type and will associate the onclick handler with them.