-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Selector: filters -> pseudos #2969
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
Conversation
|
By analyzing the blame information on this pull request, we identified @markelog, @jeresig and @guybedford to be potential reviewers |
|
Ref jquery-migrate issue. I wonder if we should add tests not only for the jQuery constructor for these selectors, but specifically and isolated for these functions |
|
If we'll start warning about this soon (as in potentially Migrate 3.0) is there a UI ticket for this? |
|
@markelog I'm not sure what you're suggesting. We have tests for the added selectors. |
|
we have stuff like - assert.equal( jQuery( "#table td:visible" ).length, 1, "hidden cell is not perceived as visible (#4512). Works on table elements" );but should we have stuff like - assert.equal(jQuery.expr.pseudos.visible(td), false);instead? In other words, i'm talking about perfectionism :) |
| jQuery.expr = Sizzle.selectors; | ||
|
|
||
| // Deprecated | ||
| jQuery.expr[ ":" ] = jQuery.expr.pseudos; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this move to the deprecated module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it would be odd considering we have selector-native, which doesn't include this.
I think it does with the tests we have. |
Some coverage tools would also agree with me in that assessment, but yeah, i guess we can take care of that when we implement it. |
How so? It's still hitting the codepaths. For example, the 2 relevant lines in "src/css/hiddenVisibleSelectors.js" are 7 and 10, and they are executed, so coverage would be good, right? |
Fixes gh-2073