Skip to content

Relative path xpath using id does not use // #4845

@straker

Description

@straker

When xpaths are turned on during a run ({ xpath: true }) and a node has an id, axe-core returns a relative path to the element with just the id instead of the absolute path from html (i.e. /input[@id=name]). However this is incorrect as the path should use a double // and not a single / (i.e. //input[@id=name])

Slack Conversation

Metadata

Metadata

Assignees

Labels

fixBug fixes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions