Ticket #11574 (closed bug: invalid)
jquery does not recognize recognize :hover in IE compatibility view
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | selector | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hi
I recently get an error when use is(':hover') in IE9 compatibility view. I ask question in StackoverFlow but I don't get any proper answer.so I think this is a bug.
Link to test : http://jsfiddle.net/marcuswhybrow/LL5JD/
Change History
comment:1 Changed 14 months ago by sindresorhus
- Priority changed from undecided to low
- Resolution set to invalid
- Status changed from new to closed
- Component changed from unfiled to selector
comment:2 Changed 14 months ago by anonymous
I my example in JsFiddle I don't select any element.I just want to get status of mouse pointer and element.If :hover does not work on IE 7 jQuery is not cross browser.How I can write :hover equivalent for IE 7?
comment:3 Changed 14 months ago by dmethvin
If :hover does not work on IE 7 jQuery is not cross browser.
jQuery doesn't and can't support every feature on every browser. Notice that jQuery doesn't try to make border-radius work on IE7 either.
How I can write :hover equivalent for IE 7?
That is a great forum question, but not appropriate for a bug tracker.
comment:4 Changed 14 months ago by diopralinato
you don't need ":hover" equivalent
i think that .hover() function can does much more than your require
see here: http://api.jquery.com/hover/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

:hover is not a valid jQuery selector: http://api.jquery.com/category/selectors/
However, querySelectorAll, which is used by jQuery on modern browsers, does support the :hover pseudo selector, and as you've seen, works there.