Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

how to differentiate between standard and quirks document mode for IE10

$
0
0

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.

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>