MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / #getScript

Method #getScript

src/core/runtime/runtime.js:747–759  ·  view source on GitHub ↗
(elt)

Source from the content-addressed store, hash-verified

745 }
746
747 #getScript(elt) {
748 var attrs = this.#getScriptAttributes();
749 for (var i = 0; i < attrs.length; i++) {
750 var scriptAttribute = attrs[i];
751 if (elt.hasAttribute && elt.hasAttribute(scriptAttribute)) {
752 return elt.getAttribute(scriptAttribute);
753 }
754 }
755 if (elt instanceof HTMLScriptElement && elt.type === "text/hyperscript") {
756 return elt.innerText;
757 }
758 return null;
759 }
760
761 #scriptSelector;
762 #getScriptSelector() {

Callers 1

#initElementMethod · 0.95

Calls 1

#getScriptAttributesMethod · 0.95

Tested by

no test coverage detected