The querySelectorAll of ParentNode for JS returns all elements of the node that match the selector(s).
node.querySelectorAll(selectors)
Patterns that match elements in a tree structure.
append
children
firstElementChild
lastElementChild
prepend
querySelector
replaceChildren
Web Hypertext Application Technology Working Group (WHATWG)