-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find unique selector in the scope of a root element #26
Comments
Sounds interesting, yep. Definetely a nice suggestion. It can be a param in options config. |
@AvraamMavridis @vwochnik @ericclemmons Proposing Changes
Test Results: Passing body > nth-child(33) as owner
|
Proof Return: div_acb4 document.querySelector('body > :nth-child(33)').querySelectorAll(unique( DomElement, options , document.querySelector('body > :nth-child(33)'))) Return: div_acb4 |
Scoping to particlar root parent Nth child or attributes as selectorTypes as class id tags are independient of parent |
Normally, this script will find a unique selector for an element in the scope of the whole
document
but I will probably also need the option to apply this algorithm within a root element.If you are willing to merge such a feature, I would create a PR.
The text was updated successfully, but these errors were encountered: