Gets all deeply nested elements contained within the given element, flattened into a single
array. Shadow DOMs are traversed.
Note that <slot> elements are included, as well as their nested elements (even if a slot filler
is provided by the parent) and the slot filler itself (if provided).
Optionally define a second "depth" input to control how far nestings should be pursued. Omit
depth or set it to undefined or 0 to allow full depth search.
Gets all deeply nested elements contained within the given element, flattened into a single array. Shadow DOMs are traversed.
Note that
<slot>
elements are included, as well as their nested elements (even if a slot filler is provided by the parent) and the slot filler itself (if provided).Optionally define a second "depth" input to control how far nestings should be pursued. Omit depth or set it to
undefined
or0
to allow full depth search.