Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#10385 closed bug (worksforme)

jQuery.browser.version for ie9 is returning '7.0'

Reported by: anonymous Owned by:
Priority: low Milestone: 1.7
Component: core Version: 1.7b1
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery.browser.version returns 7.0 instead of the expected 9.0 for Internet Explorer 9.0.8112.16421 64bit Perhaps I have done something incorrectly however someone smarter should probably take a look thank you.

Change History (5)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledcore
Milestone: None1.7
Priority: undecidedlow
Resolution: worksforme
Status: newclosed
Version: 1.6.21.7b1

comment:2 Changed 8 years ago by Rick Waldron

If you're in compat mode, you will get the IE7 UA string which is what jQuery.browser.version is derived from

comment:3 Changed 8 years ago by anonymous

If you're in quirks mode too, or don't specify a doctype, IE will try its best to figure out what compat mode to use too, and that might set it to 7.0

comment:4 in reply to:  3 Changed 8 years ago by laurent.guiraud@…

I have the problem too and i'm using IE 9.0.8112.16421 on Seven 64bits.

I'm not in compat mode and I have the following doctype in my page : <!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

But whatever ? Am I missing something ?

comment:5 Changed 7 years ago by mail@…

I would argue this needs opening, I'm getting the same result with <!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01EN" "http://www.w3.org/TR/html4/strict.dtd">

Note: See TracTickets for help on using tickets.