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

Method getRootNode

tools/common/_hyperscript.iife.js:2680–2686  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

2678 return eventResult;
2679 }
2680 getRootNode(node) {
2681 if (node && node instanceof Node) {
2682 var rv = node.getRootNode();
2683 if (rv instanceof Document || rv instanceof ShadowRoot) return rv;
2684 }
2685 return document;
2686 }
2687 escapeSelector(str) {
2688 return str.replace(/[:&()\[\]\/]/g, function(str2) {
2689 return "\\" + str2;

Callers 2

selectMatchesMethod · 0.45
resolveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected