MCPcopy Index your code
hub / github.com/pyscript/pyscript / _find_and_wrap

Function _find_and_wrap

core/src/stdlib/pyscript/web.py:230–236  ·  view source on GitHub ↗

Find all descendants of `dom_node` matching the CSS `selector`. Returns an `ElementCollection` of wrapped elements.

(dom_node, selector)

Source from the content-addressed store, hash-verified

228
229
230def _find_and_wrap(dom_node, selector):
231 """
232 Find all descendants of `dom_node` matching the CSS `selector`.
233
234 Returns an `ElementCollection` of wrapped elements.
235 """
236 return ElementCollection.wrap_dom_elements(dom_node.querySelectorAll(selector))
237
238
239class Element:

Callers 3

findMethod · 0.85
findMethod · 0.85
findMethod · 0.85

Calls 1

wrap_dom_elementsMethod · 0.80

Tested by

no test coverage detected