diff --git a/src/index.js b/src/index.js index d3c7285..55d4e72 100644 --- a/src/index.js +++ b/src/index.js @@ -147,7 +147,7 @@ function getUniqueSelector( element, selectorTypes, attributesToIgnore, filter ) // if we found a selector via attribute if ( attributeSelector ) { - selector = getAttributeSelector( element, attributeToQuery, filter ); + selector = attributeSelector selectorType = 'attribute'; } }