You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2018. It is now read-only.
This would effectively fill what the shadow-piercing combinator enabled. No matter how deep the element you're trying to select is, it should find and return it. The only catch is that selectors will still be bound to shadow boundaries, which I think is fair.
The deep flag should be added to the walk() function as an option. It will be passed by anything that uses walk() internally, such as: one(), all() and has().
A more common use case might be with Selenium where you'd find something by text content, or by a query that cannot be expressed by a selector or complete node:
This would effectively fill what the shadow-piercing combinator enabled. No matter how deep the element you're trying to select is, it should find and return it. The only catch is that selectors will still be bound to shadow boundaries, which I think is fair.
The
deep
flag should be added to thewalk()
function as an option. It will be passed by anything that useswalk()
internally, such as:one()
,all()
andhas()
.Where
<my-component />
contains thea
several shadow trees down.To work on existing nodes:
A more common use case might be with Selenium where you'd find something by text content, or by a query that cannot be expressed by a selector or complete node:
The text was updated successfully, but these errors were encountered: