MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / acceptNode

Method acceptNode

src/content-scripts/verifyFrame.js:37–42  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

35 calcSignatureHeight() {
36 const treeWalker = document.createTreeWalker(this.pgpElement, NodeFilter.SHOW_TEXT, {
37 acceptNode(node) {
38 if (PGP_SIG_HEADER.test(node.textContent)) {
39 return NodeFilter.FILTER_ACCEPT;
40 }
41 return NodeFilter.FILTER_REJECT;
42 }
43 }, false);
44 const pgpSigBegin = treeWalker.nextNode();
45 this.pgpSigRange = pgpSigBegin.ownerDocument.createRange();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected