Skip to content

Commit

Permalink
Update src/bidiMapper/modules/context/BrowsingContextImpl.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
  • Loading branch information
OrKoN and sadym-chromium authored Apr 22, 2024
1 parent 0c6f0bc commit c006b61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bidiMapper/modules/context/BrowsingContextImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1283,14 +1283,13 @@ export class BrowsingContextImpl {
}

if (match) {
returnedNodes.push(contextNode);
if (
maxNodeCount !== 0 &&
returnedNodes.length === maxNodeCount
) {
break;
}

returnedNodes.push(contextNode);
}

const childNodes: Element[] = [];
Expand Down

0 comments on commit c006b61

Please sign in to comment.