- From: Ryosuke Niwa <notifications@github.com>
- Date: Tue, 31 May 2016 17:26:18 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Wednesday, 1 June 2016 00:26:47 UTC
> If you are suggesting to use the {attached,detached}Callbacks to build some sort of internal map and keep track of every instance, then that is exactly what would be nice to avoid and rely on `querySelectorAll` for. I'm saying that providing such an API is undesirable because looking for all elements in the composed tree with `querySelectorAll` would be **extremely** inefficient and expensive. A better approach would be for each component to keep track of their subcomponents within its shadow tree (e.g. at construction time), and recursively call `draw` on them. Alternatively, adding some sort of a option to `MutationObserver` so that it can track new elements of a given type being added to a shadow tree might work. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/78#issuecomment-222860179
Received on Wednesday, 1 June 2016 00:26:47 UTC