Skip to main content

Bug Tracker

Side navigation

#12529 closed bug (worksforme)

Opened September 13, 2012 10:40AM UTC

Closed September 13, 2012 10:53AM UTC

Last modified September 13, 2012 11:17AM UTC

jQuery.browser.version for IE is always returning '7.0'

Reported by: jdborg Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:
Description

Doesn't matter if I'm in 7, 8 or 9, I'm always getting '7.0' returned.

<!DOCTYPE html>
<html>
  <head>
    <script type="text/javascript" src="../assets/js/jquery/jquery.js"></script>
  </head>
  <body>
    <script type="text/javascript" >
    if ($.browser.msie) {
      alert($.browser.version)
    }
    </script>
    <p>
      Hello World
    </p>
  </body>
</html>
Attachments (0)
Change History (4)

Changed September 13, 2012 10:43AM UTC by jdborg comment:1

As requested; jsFiddle example jsfiddle.net/jdb1991/Uda6B/

Changed September 13, 2012 10:53AM UTC by jaubourg comment:2

resolution: → worksforme
status: newclosed

I open this fiddle with IE9 and I get 9.

Changed September 13, 2012 11:13AM UTC by jdborg comment:3

I don't! Is there any suggestion as to why the page would be rendering in 7.0?

Changed September 13, 2012 11:17AM UTC by jaubourg comment:4

That's a question you should ask on the forums or IRC.

Though "google is your friend"(tm): http://stackoverflow.com/questions/6628557/javascript-returning-wrong-ie-version