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

Method getRootNode

www/js/_hyperscript.esm.js:2691–2697  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

2689 return eventResult;
2690 }
2691 getRootNode(node) {
2692 if (node && node instanceof Node) {
2693 var rv = node.getRootNode();
2694 if (rv instanceof Document || rv instanceof ShadowRoot) return rv;
2695 }
2696 return document;
2697 }
2698 escapeSelector(str) {
2699 return str.replace(/[:&()\[\]\/]/g, function(str2) {
2700 return "\\" + str2;

Callers 2

selectMatchesMethod · 0.45
resolveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected