Skip to content
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

No clues about ignoring certain list of elements #32

Open
entrptaher opened this issue Apr 21, 2017 · 4 comments
Open

No clues about ignoring certain list of elements #32

entrptaher opened this issue Apr 21, 2017 · 4 comments

Comments

@entrptaher
Copy link

We have a list of selectors, a list of rejected elements. We can select elements well and get short selector, but how to get the proper selectors and ignore those rejected elements?

If I try to ignore the elements using traverseNode of Skip example, the traverseNode returns the whole document. If I use classes, the className returns only class instead of a list or array of classes.

If we have multiple elements .under.blue and .under.red and we only want to get .under.blue and reject .under.red.

To sum it up, how do we ignore a list of elements properly?

@michaelcpuckett
Copy link

+1

Seems this is related to TODO item:

consider :not - selector to exclude other elements matching (for multiple element matching consider the :not selector to exclude exceptions)

@entrptaher
Copy link
Author

No progress in 2 years. :D Optimal Select is very optimal that I get worried I'll break something if I touch it to add this functionality.

@autarc
Copy link
Owner

autarc commented May 22, 2019

Lost a track of time. An update which addresses the existing PRs and the mentioned issue here is in work. Will hopefully finish it this summer. Sorry for the inconvenience 😓

@entrptaher
Copy link
Author

I used another jQuery based library called selector gadget, dom selector tool and with optimal select for last two years since my first post here.

I've been using it and I think we can definitely work on something. Even right now I'm using that library with jQuery just because the multi selector on optimal select does not allow to ignore list of DOM elements.

I'll try to experiment with this more. Good to see the project did not die.

Let me know how i can be of help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants