Skip to content

Commit

Permalink
AG-593 fix element to string for elements
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtop committed Jul 8, 2024
1 parent 1a59876 commit 8f452ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class CssHitsCounter {
elements: NodeListOf<Element> | Element[],
start: number,
length: number | null,
): { filterId: number; ruleText: string; element: string }[] {
): ICountedElement[] {
const RULE_FILTER_SEPARATOR = ';';
start = start || 0;
length = length || elements.length;
Expand All @@ -284,7 +284,7 @@ export class CssHitsCounter {
result.push({
filterId,
ruleText,
element: ElementUtils.elementToString(element),
element: this.elementToString ? ElementUtils.elementToString(element) : element,
});
}

Expand Down

0 comments on commit 8f452ce

Please sign in to comment.