(elt)
| 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 | // ================================================================= |
no test coverage detected