Open
Description
Description
The method isNodeFromTemplate
is confusing on itself, its semantics are really about whether a node is inside a shadow or not, maybe we should rename it to isNodeShadowed
or something similar.
There is one use-case today that is forcing us to break those semantics for a very edge case:
The Problem
- when a node is inserted manually inside an element from template, and that element does not have the
lwc:dom="manual"
flag specified, the node is considered as not part of the shadowRoot when running in synthetic mode. This is considered a feature for flexipages inserting aura elements inside the flexipage, while those aura elements are accessible via a global document query.
This is plain wrong, and we should fix it, but first we need to investigate how to help those folks that are using this as a feature.
Activity