MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _queryEltAndDescendants

Function _queryEltAndDescendants

www/js/_hyperscript-max.js:3747–3751  ·  view source on GitHub ↗
(elt, selector)

Source from the content-addressed store, hash-verified

3745 }
3746 }
3747 function _queryEltAndDescendants(elt, selector) {
3748 var results = [...elt.querySelectorAll?.(selector) ?? []];
3749 if (elt.matches?.(selector)) results.unshift(elt);
3750 return results;
3751 }
3752
3753 // src/core/runtime/htmx-compat.js
3754 var HtmxCompat = class _HtmxCompat {

Callers 1

_createIdMapsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected