次の方法で共有


Ladies and Gentlemen, Please Welcome... the IE Mobile User Agent String!

Yesterday, the IE team introduced their User Agent string for IE9. We felt that it was only right that we do the same thing.

Thus, without further ado, introducing the Windows Phone Internet Explorer UA String:

Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; <DeviceManufacturer>;<DeviceModel>)

This will be the standard format of our User Agent string for Windows Phone 7 series. Some things to note:

  • The version token is MSIE 7.0, which reflects the base level of the browser
  • The platform token is now "Windows Phone OS 7.0"
  • The Trident token is 3.1, which is the rendering engine for this version
  • The Mobile Version token is IEMobile/7.0, which reflects the current version of Windows Phone Internet Explorer. This will be updated as we evolve the browser.
  • Device manufacturers will append their information to the end of the UA string, listing both the manufacturer and the model of the device.

If you have a Web site that serves rich mobile content to other browsers, please test your site with this new UA string and send us feedback. As I noted in an earlier post, the Windows Phone developer tools come pre-loaded with IE Mobile in the emulator, which you can use to test your site.

Update 6-17-10: Moved DeviceManufacturer and DeviceModel inside the comment block

Joe Marini

Principal Program Manager, Windows Phone

Comments

  • Anonymous
    March 25, 2010
    Many on the IE Blog are wondering what the real specs of the mobile IE browser are on the Windows Phone 7. This CNET article: http://news.cnet.com/8301-13860_3-10452710-56.html indicates that the browser is somewhere between IE7 and IE8 (very vague) More importantly are the JavaScript fixes in IE8 going to be in the mobile version? e.g. will document.getElementById(id) actually work or is it the busted version in IE6/IE7. What CSS additions from IE8 are supported? e.g. -ms-filter:"alpha(opacity???)" Or more specifically what stuff from IE8 is NOT in the mobile version? The user-agent string you've provided above seems to indicate that this is actually a very old version of IE. (e.g. Trident/3.1) Please clarify as much as possible, or point out reference documentation. thanks!

  • Anonymous
    March 25, 2010
    Hi Steve, Check out my session from MIX10 online, where I cover some of this (toward the second half of the talk): http://live.visitmix.com/Sessions/CL23 Specifically:

  • It's the rendering engine from IE7, with some JavaScript improvements from IE8.

  • We added only a couple of CSS improvements, like the ability to recognize -webkit-text-size-adjust (and the -ms version too).

  • There are some docs available at http://developer.windowsphone.com, and we will be updating them and adding more as we continue development throughout the coming weeks.

  • Anonymous
    June 01, 2010
    The comment has been removed

  • Anonymous
    June 02, 2010
    The comment has been removed

  • Anonymous
    August 03, 2010
    The comment has been removed

  • Anonymous
    October 26, 2010
    The comment has been removed

  • Anonymous
    November 02, 2010
    The comment has been removed

  • Anonymous
    November 02, 2010
    @Andre I think that IE mobile 7 doesn't look at the "handheld" type. You can use conditional comments for this - I will have a post soon.

  • Anonymous
    November 10, 2010
    Any news on the conditional comments for IE mobile 7?  Is it possible to distinguish between desktop IE7 and mobile IE7?

  • Anonymous
    November 10, 2010
    Any news on the conditional comments for IE mobile 7?  Something that targets just the mobile IE7 and not the desktop?

  • Anonymous
    November 22, 2010
    Stay tuned, Mattie - we'll have a post on this soon.