Forum Moderators: open
Does someone know or have any clue how to detect Safari's rendering mode?
<a href="javascript:(function(){var mode=document.compatMode,m;if(mode){if(mode=='BackCompat')m='Quirks';else if(mode=='CSS1Compat')m='Standards';else m='an unknown';alert('The document is being rendered in '+m+' Mode.');}})();" ADD_DATE="1089763488" LAST_MODIFIED="1089763503" ID="rdf:#$+8vof1">Detect Rendering Mode</a>
... Another possibility is to use Explorer's proprietary compatMode property...
;)
Any of the declarations you find on this page should force a standards-compliant browser into standards-compatibility mode, the most predictable rendering mode for cross-platform reliability: [w3schools.com...]