Bug Tracker

Ticket #11574 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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 3 years 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

: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.

comment:2 Changed 3 years 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 3 years 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 3 years 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/

Note: See TracTickets for help on using tickets.