in src/sarif-converter.ts [190:201]
private getLogicalLocations(node: Axe.NodeResult): Sarif.LogicalLocation[] {
const selector: string = node.target.join(';');
const logicalLocations: Sarif.LogicalLocation[] = [
this.formatLogicalLocation(selector),
];
// casting node as "any" works around axe-core/#1636
if ((node as any).xpath) {
let nodeXpath: string = (node as any).xpath.join(';');
logicalLocations.push(this.formatLogicalLocation(nodeXpath));
}
return logicalLocations;
}