Page 1 of 1

make IE behave like a standards-compliant browser

Posted: Fri 28. Mar 2008, 09:40
by marcus@localhorst
Hi,
yesterday I stumbled across this nice JavaScript library
ie7-js A JavaScript library to make MSIE behave like a standards-compliant browser..

A quick, hotlinked test makes me open-mouthed. It just works in every IE version.
IE8-beta acts still a bit strange, but it's beta.
Maybe you can now forget all your CSS hacks and .htc behaviours

And don't forget - if you work with IE8 you can set the header

Code: Select all

-- PHP
header('X-UA-Compatible:IE=7');
-- HTML, put this directly under <title>
<meta http-equiv="X-UA-Compatible" content="IE=7">
to switch IE8 in IE7 strict mode.
That's maybe useful if you site looks great in IE7 and below, but now fucks up in IE8 (because of css hacks or whatever)
For more about that, take a look here: http://snipplr.com/view/5544/how-to-set ... atibility/

have a nice day
marcus

Re: make IE behave like a standards-compliant browser

Posted: Fri 28. Mar 2008, 10:24
by Heiko H.
Thanks marcus,

i haven't tested it, but that sounds sooooooooooo goooooooooood. :D

Regards Heiko...

Re: make IE behave like a standards-compliant browser

Posted: Fri 28. Mar 2008, 10:33
by marcus@localhorst
it's just to waste some more times to switch through rendering modes and test and test and test :?






... and test again

Re: make IE behave like a standards-compliant browser

Posted: Thu 3. Apr 2008, 13:20
by daniel.grant
this is really good! I'm well impressed. Why did no-one tell me about this before?!!