I have to check when a user has selected Quirks or Standard document mode from the developer tool for IE10. Using the below code, i always get the same value i.e. 10 for both the modes.
document.documentMode
Please let me know how could i discriminate between the two document modes in IE10. I am using javascript for the same.
This issue is arising only for IE10. In this scenario user is changing the document mode himself. Our site displays properly for Standards Mode but distorts for Quirks mode. For this we are planning to display an error message. Since the "document.documentMode" is giving me the same value i.e. 10 for both the modes, i am not able to discriminate between them. Any pointers in this regards will be appreciated.