Skip to content

Commit 72144eb

Browse files
author
Abhishek Bindra
committed
add ancestry path support
1 parent 1c15e66 commit 72144eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/core/utils/dq-element.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ DqElement.prototype = {
246246
* @return {String}
247247
*/
248248
get selector() {
249+
if (axe._cache.get('targetFormat') === 'ancestry') {
250+
return this.spec.selector || [getAncestry(this.element)];
251+
}
249252
if (axe._cache.get('runTypeAOpt')) {
250253
return this.spec.selector || [generateSelectorWithShadow(this.element)];
251254
}

0 commit comments

Comments
 (0)