Skip to main content

Bug Tracker

Side navigation

#11574 closed bug (invalid)

Opened April 10, 2012 11:46AM UTC

Closed April 10, 2012 12:55PM UTC

Last modified April 12, 2012 10:20AM UTC

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:
Blocked by: Blocking:


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 I think this is a bug.

Link to test :

Attachments (0)
Change History (4)

Changed April 10, 2012 12:55PM UTC by sindresorhus comment:1

component: unfiledselector
priority: undecidedlow
resolution: → invalid
status: newclosed

:hover is not a valid jQuery selector:

However, querySelectorAll, which is used by jQuery on modern browsers, does support the :hover pseudo selector, and as you've seen, works there.

Changed April 11, 2012 04:51AM UTC by anonymous comment:2

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?

Changed April 11, 2012 12:57PM UTC by dmethvin comment:3

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.

Changed April 12, 2012 10:20AM UTC by diopralinato comment:4

you don't need ":hover" equivalent

i think that .hover() function can does much more than your require

see here: