none
Difference between IE11 Enterprise Mode setting vs IE8 Document Mode setting? RRS feed

  • Question

  • What is the difference in functionality between setting as URL as "Enterprise Mode" vs "IE 8 Document Mode?"

    Looks like it would be the same thing.

    Friday, March 13, 2015 5:10 AM

All replies

  • Hello MyGposts,

    About the ‘IE 8 Document Mode’, do you open it in F12 develop tool?

    They all emulate Internet Explorer 8.
    But Internet Explorer Enterprise mode has its own feature, please take a look at the following article.
    https://msdn.microsoft.com/en-us/library/dn640687.aspx?f=255&MSPPError=-2147217396
    You can add website domains and domain paths to Enterprise Site List Manager tool. It is easy to centralized control. And user can browse the web normally, letting the browser change modes automatically.

    In F12 develop tool, you need to change it manufally.

    Best regards,
    Fangzhou CHEN


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Monday, March 16, 2015 6:43 AM
    Moderator
  • I thought I saw both IE 8 and Enterprise as separate options in the tool, but I just found a screen shot that shows that Enterprise is in the spot where IE 8 would be.

    So, I assume this means "Enterprise Mode" is equivalent to what "IE8 Document Mode" would be.

    Monday, March 16, 2015 7:14 AM
  • Hello MyGposts,

    Please take a look at the following screenshot from my test.

    You can choose to use IE8 Document Mode or Enterprise mode.

    Best regards,

    Fangzhou CHEN


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Monday, March 23, 2015 1:30 AM
    Moderator
  • OK. I must have seen something like that before and that's why I was confused.

    So, then the question remains.  What is the difference between "IE 8 document mode" and "Enterprise mode?" 


    • Edited by MyGposts Monday, March 23, 2015 1:37 AM
    Monday, March 23, 2015 1:35 AM
  • If a domain/path is in the Enterprise list, the userAgent string corresponding with the DocMode attribute of the list Item is sent in the request header. This allows server-side languages such as .net to return version specific JS scripts. eg use attachEvent or addEventListener. This is server-side userAgent sniffing (browser.caps file).

    any other request will send the current navigator.userAgent value in the request header.

    eg.... navigate to a site that is using the x-ua=IE7 meta. Open the developer tools (12)>Networking tab and click the 'Start' button. Then in the console tab, type navigator.userAgent to inspect the current client UAS.

    return to IE and type in the address of a domain/path that is in the Enterprise list.

    return to the developer tool and inspect the request header. It will be using the UAS of its docMode attribute value of the domain/path item in the list.

    The enterprise list allows a more granular control of which domains AND paths will use which documentMode.

    THE DIFFERENCE IS in which userAgent string is sent in the request header, as

    there may be server side UAS sniffing. The browser cannot determine the client UAS string (navigator.userAgent) or its documentMode until the response is returned and the x-ua directives are evaluated either from the x-ua meta or header.

    IE8 Emulation - only supports attachEvent

    IE9-IE10 Emulation - supports both attachEvent AND addEventListener, but addBehavior, vml, conditional comments and other 'features' support was dropped,

    IE11 Edge mode supports only addEventListener, getSelection and other 'standard' features, see Compatibility Changes in IE11

    for a full listing of 'features' that each emulation mode (alt. browser version) supports see caniuse.com

    historically, enterprise assets (intranet zone domains) relied on the client settings for "display intranet sites in compatibility view" which would force the whole domain to be rendered with IE7 emulation, not the x-ua meta or response headers. Additionally iframe hosted content would be forced to use the rendering/emulation mode of the parent document.

     


    Rob^_^

    Thursday, March 26, 2015 3:04 AM
  • I'm still not seeing from that answer specifically what is the difference between IE8 document mode and Enterprise mode when the selections are made using the Enterprise Mode Site List Manager that came out last November.

    Prior to November 2014, Enterprise Mode emulated IE8.  Starting last November the tool lists Enterprise Mode and IE 8 Document Mode as two different choices to select from the drop down menu.

    What happens differently when you use the tool to configure the URL to launch in IE8 Document Mode vs launch in Enterprise Mode?

    The same could be said for difference between choosing "Default"  vs "Edge?"  Do they both work as IE11?

    Choices available are:

    Default

    Enterprise

    Edge

    IE10

    IE9

    IE7

    IE5

    Thursday, March 26, 2015 5:59 AM
  • yes... Edge is the default for the browser version.

    you probably have content in iframes on some of your pages that is giving you mixed results.

    If you have access to the intranet developers they will be able to help you with the concepts of DocumentMode, document Type, x-ua meta and headers.

    or

    are you using EM logging? If yes...

    see https://social.technet.microsoft.com/Forums/ie/en-US/de33be8b-b126-436e-a641-af60619f3a12/inconsistent-application-of-enterprise-mode-group-policy-settings?forum=ieitprocurrentver

    It sounds like you have EM logging turned on your test machine and you are seeing different results on a client.

    Regards.


    Rob^_^

    Friday, March 27, 2015 12:03 AM
  • There still seems to be confusion about the question being asked.

    This is not related to EM logging or iframes. 

    I am only asking what the difference between seemingly redundant options in the site list manager.

    Enterprise Mode appears to mean the same thing as IE8 Document mode because that was the only option before last November.

    http://blogs.msdn.com/b/ie/archive/2014/11/11/announcing-improvements-to-the-enterprise-mode-site-list.aspx

    If the two options in the site manager don't do the same thing, what is different about them?

    Friday, March 27, 2015 2:01 AM
  • Hi,

    Yes... Enterprise Mode should be the same as IE8 emulation mode... however

    there is a bug in Developer tools which has been reported at connect here -

    https://connect.microsoft.com/IE/feedback/details/1244420/developertools-enterprise-mode-and-sites-using-the-system-dtd-doctype-html (private post).

    If the web-site page that is in Enterprise Mode (site list or manually added) is using the system DTD (!doctype html), then WHEN the Developer tools is displayed it will show the wrong documentMode and compatModes of 5 and backCompat respectively (expected: 8 , CSS1Compat).

    Here is the test plan, which you may like to reproduce your self.

    Test Plan:

    You will need a machine which has EnterpriseMode loging install (If it is installed you will see the Tools>Enterprise Mode menu option available).

    1. Navigate to https://social.technet.microsoft.com/Forums/ie/en-US/home?forum=ieitprocurrentver  (or any internet or intranet site that is using the <!doctype html> dtd).
    2. type
    javascript:alert('documentMode:'+document.documentMode+'\n'+'compatMode:'+document.compatMode);

    in the IE address bar and press enter.
    >documentMode:11
    compatMode:CSS1Compat

    3. display the developer tool (f12) and select the Emulation tab), select 8 from the Emulation dropdown (the page will be re-rendered using the DT's IE8 emulation).
    In the DOM Explorer window you will see that the <!doctype html> directive has been commented out <!--doctype html-->

    4. Return to the web page.
    again
    type
    javascript:alert('documentMode:'+document.documentMode+'\n'+'compatMode:'+document.compatMode);

    in the IE address bar and press enter.
    >documentMode:8
    compatMode:CSS1Compat

    Actual==Expected...... make a note of these settings.

    5. Important - Close the developer tools while the Emulation tab is visible (so it will default to the Emulation tab the next time its opened)

     (you should see the web page re-load into its default Edge mode)

    6. Using the Tools>Enterprise Mode menu switch ON Enterprise Mode. You should see the test url refresh and reload with the Enterprise Mode appearing in the IE Address bar.

    7. again type

    javascript:alert('documentMode:'+document.documentMode+'\n'+'compatMode:'+document.compatMode);

    in the IE address bar and press enter.
    >documentMode:8
    compatMode:CSS1Compat

    THIS IS THE EXPECTED RESULT.

    8. Display the Developer tools.....
    As the DT's is loaded (you should see it open by default in the emulation tab) the documentMode starts with 8, but a parser restart occurs in the developer tools and changes the documentMode to 5.
    Expected: the Emulation dropdown on the Developer tools should stay selected on 8 (Default)
    Actual: the Emulation dropdown on the Developer tools selects 5.

    9. Return to the web page and again type
    javascript:alert('documentMode:'+document.documentMode+'\n'+'compatMode:'+document.compatMode);

    in the IE address bar and press enter.
    >documentMode:5
    compatMode:backCompat

    (compare these results to those of step: 7)

    10. Close the Developer Tools... you should see the web page refresh and reload.
    type
    javascript:alert('documentMode:'+document.documentMode+'\n'+'compatMode:'+document.compatMode);

    in the IE address bar and press enter.
    >documentMode:8
    compatMode:CSS1Compat

     


    Rob^_^

    Monday, April 13, 2015 7:25 AM