diff --git a/src/common/Accessibility.ts b/src/common/Accessibility.ts index 919f06d3a8b..9593ae4011a 100644 --- a/src/common/Accessibility.ts +++ b/src/common/Accessibility.ts @@ -208,13 +208,13 @@ export class Accessibility { private serializeTree( node: AXNode, - whitelistedNodes?: Set + interestingNodes?: Set ): SerializedAXNode[] { const children: SerializedAXNode[] = []; for (const child of node.children) - children.push(...this.serializeTree(child, whitelistedNodes)); + children.push(...this.serializeTree(child, interestingNodes)); - if (whitelistedNodes && !whitelistedNodes.has(node)) return children; + if (interestingNodes && !interestingNodes.has(node)) return children; const serializedNode = node.serialize(); if (children.length) serializedNode.children = children;