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

Method getRootNode

www/js/_hyperscript-max.js:2692–2698  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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

Callers 2

selectMatchesMethod · 0.45
resolveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected