Internet Explorer 11 is using like gecko in the user agent

Internet Explorer 11 is pretending it’s Firefox

Microsoft has figured out how to get websites to stop treating Internet Explorer like a second-class web browser: it’s going to disguise itself as Firefox.

What Looks Like IE11 but Smells Like Firefox?

The user-agent string for Internet Explorer 11 is shorter than previous versions and has some interesting changes:

Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko

Compare this to the Internet Explorer 10 user-agent string (on Windows 7):

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)

The biggest change in IE11 is the removal of ‘MSIE’. I suspect that has been done for one reason: to prevent sites serving invalid IE6/7/8 code to modern editions of the browser. Recent releases of IE’s Trident engine are closer to Gecko or WebKit than legacy editions of itself. By removing the ‘MSIE’ string, Microsoft is breaking detection code and making many sites work as they should.

The point is: none of this matters. If you’re browser sniffing, probably you are almost certainly doing something wrong! While it seems an obvious solution, browser sniffing is a fragile technique that introduces more maintenance headaches than it prevents.

Advertisements

One comment

  1. brustverkleinerung · October 3, 2014

    When someone writes an article he/she retains the thought of a user in his/her mind that how a
    user can be aware of it. Thus that’s why this
    piece of writing is outstdanding. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s