Bugfix/vulnerabilities #388
|
@ -43,7 +43,7 @@ export function findTextNodes(baseNode: Node): Array<Node> {
|
||||||
baseNode = document.documentElement;
|
baseNode = document.documentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
let walker = document.createTreeWalker(baseNode, NodeFilter.SHOW_TEXT, null, false);
|
let walker = document.createTreeWalker(baseNode, NodeFilter.SHOW_TEXT, null);
|
||||||
let node;
|
let node;
|
||||||
let results = [];
|
let results = [];
|
||||||
while (node = walker.nextNode()) {
|
while (node = walker.nextNode()) {
|
||||||
|
|
Loading…
Reference in a new issue