-
Notifications
You must be signed in to change notification settings - Fork 58
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
Option to check a container too #14
Comments
Just a note for other people, who may need to customize their querying (like in #10): Found a third, hacky way. Basically right now tabbable takes one argument |
@vonagam: I understand the use case. How about adding an option |
Yes. That would be perfect. |
👍 open to a PR to introduce this option. |
Closed by #15. |
Right now only nodes within a container get tested, but not a container itself. I have use case when i want a container to be possibly included in resulted array.
In current state i may get what i need, by retrieving tabbables of a parent of a container and then filtering results by inclusion of container. My concern is that of performance. Siblings of a container can be big, while container itself may be small or empty, it may result in much of unnecessary work.
Another way is to add option which will tell to prepend a container to candidates list if it matches one of selectors.
What are your opinion on adding such option? It is ok or is it out of scope of this library?
The text was updated successfully, but these errors were encountered: