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

click_hidden doesn’t account for CSS :hover pseudo class #8

Open
polarblau opened this issue Apr 7, 2013 · 0 comments
Open

click_hidden doesn’t account for CSS :hover pseudo class #8

polarblau opened this issue Apr 7, 2013 · 0 comments

Comments

@polarblau
Copy link
Collaborator

If the element in question is shown via CSS e.g. through a :hover pseudo selector or any JS event other than mouseenter (hover), the current implementation will fail.

Here's an example:

<a href="#"><span>Foo</span>Bar</a>
a span { display: none; } 
a:hover span { display: block; }
$('a').trigger('mouseenter');

This will have no effect. Better would be probably an implementation which is independent from how the element is hidden and shown, e.g. using $.fn.show().

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

1 participant