Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 20 months ago by rwaldron
- Status changed from new to closed
- Component changed from unfiled to core
- Priority changed from undecided to low
- Version changed from 1.6.2 to 1.7b1
- Milestone changed from None to 1.7
- Resolution set to worksforme
comment:2 Changed 20 months ago by rwaldron
If you're in compat mode, you will get the IE7 UA string which is what jQuery.browser.version is derived from
comment:3 follow-up: ↓ 4 Changed 19 months 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 19 months 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 8 months 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">
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Looks like a 9 to me: http://gyazo.com/cd91c6e2aa5c5d4ca1567b43044f4297.png