MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / processNode

Method processNode

tools/common/_hyperscript.iife.js:2831–2846  ·  view source on GitHub ↗
(elt)

Source from the content-addressed store, hash-verified

2829 this.#afterProcessHooks.push(fn);
2830 }
2831 processNode(elt) {
2832 for (var fn of this.#beforeProcessHooks) fn(elt);
2833 var selector = this.#getScriptSelector();
2834 if (this.matchesSelector(elt, selector)) {
2835 this.#initElement(elt, elt);
2836 }
2837 if (elt instanceof HTMLScriptElement && elt.type === "text/hyperscript") {
2838 this.#initElement(elt, document.body);
2839 }
2840 if (elt.querySelectorAll) {
2841 this.forEach(elt.querySelectorAll(selector + ", [type='text/hyperscript']"), (elt2) => {
2842 this.#initElement(elt2, elt2 instanceof HTMLScriptElement && elt2.type === "text/hyperscript" ? document.body : elt2);
2843 });
2844 }
2845 for (var fn of this.#afterProcessHooks) fn(elt);
2846 }
2847 // =================================================================
2848 // Debug and tracing
2849 // =================================================================

Callers 15

morphMethod · 0.95
replaceInDomMethod · 0.95
resolveMethod · 0.45
putIntoMethod · 0.45
resolveMethod · 0.45
stampFunction · 0.45
fixtures.jsFile · 0.45
makeHtmxTestFunction · 0.45
halt.jsFile · 0.45
bootstrap.jsFile · 0.45
api.jsFile · 0.45

Calls 5

#getScriptSelectorMethod · 0.95
matchesSelectorMethod · 0.95
#initElementMethod · 0.95
forEachMethod · 0.95
fnFunction · 0.85

Tested by

no test coverage detected