Compatibility mode in IE8 (which my college is running) seems to break perfectly valid CSS. Is there code/script I can use on a page that can turn off compatibility mode?
Thanks.
Hi Sam. No idea about script as I'm not a developer but just be aware that turning compatiblity mode off will bring with it other issues in Moodle if your users choose to use IE8. For example -they can't make more than one link in the text editor unless they turn compatibilty mode on -which has confused a good many people - see question 4 of course FAQ here http://docs.moodle.org/22/en/Course_FAQ
Thanks Mary, that one's been foxing my boss for months now ;)
After Mary's answer above ^^^^^, I guess what I need to know then is how do I write CSS that won't be broken by compatibility mode???
I'm off to do some googling but all input greatfully recieved.
Sam.
Hi Sam,
thread on this here - http://moodle.org/mod/forum/discuss.php?d=190061
basic answer is put <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> in the <head>
love to see this in core.
more info - http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
Internet Explorer 8 will dump you into compatibility mode on any "intranet" site. You can get around this in a few ways:
anyone know if setting the X-UA-Compatible in the .htacess makes the moodle body class behave corectly?
(from html5boilerplate)
https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess
Thanks for all the answers. No one has quite solved my original problem but collectively you helped me find the solution myself and given me another, more interesting avenue of moodle dev to walk down.
Thanks again.
Sam.
Dear Sam,
A quick search reveals this:
http://twigstechtips.blogspot.co.uk/2010/03/css-ie8-meta-tag-to-disable.html
which might be similar to what has been stated, but then I remembered a similar issue with a thing called the 'Byte Order Mark' (http://tracker.moodle.org/browse/MDL-31343) which was causing the 'DOCTYPE' to be ignored because some plugins (including mine) were not saved correctly in UTF-8 format causing it to be ignored and in this case chucking IE9 into quirks mode which could be happening here. Also have a look at:
http://msdn.microsoft.com/en-us/library/ie/cc288325(v=vs.85).aspx
to see if that gives more information.
Alternatively, kindly ask the college to install and use a proper web browser ;).
Cheers,
Gareth