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

Method getRootNode

www/js/_hyperscript.js:2693–2699  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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

Callers 2

selectMatchesMethod · 0.45
resolveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected