IE Hack in SFX

Posted by HackerOfMinds on Sat, 04/22/2006 - 16:10SFX Design Issues

Just found this in an SFx page's source:

<!--[if lte IE 6]>
<style type="text/css" media="screen">
/* IE min-width trick */
div#wrapper1 {
width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 720 ? "720px" : "auto");
}
</style>
<![endif]-->

Aren't we supposed to stop coding for a particular browser and just code according to web standards?? 

Comments Please.


Submitted by natmaster on Wed, 04/26/2006 - 04:15.

The code you have here is a proprietary IE include. Every other browser ignores it. Using these allow sites to function somewhat in IE, even though it has a horribly out of date, buggy rendering engine.

Unfortunately for now, IE is the dominant browser - and that is what this site is for. Eventually, we won't have to worry about horrible stuff like this. But for now, it is necessary, and is still standards compliant, and future-compatible. It just sucks a few more bytes off the bandwidth.

Aeon of Darkness - Free Online Roleplaying MUD

Submitted by phileplanet on Tue, 04/25/2006 - 05:00.

IE <> Web Standards

Right...


Visit Phile Planet

v7ndotcom elursrebmem

Submitted by HackerOfMinds on Sat, 04/22/2006 - 16:11.

<!--[if lte IE 6]>
<style type="text/css" media="screen">
/* IE min-width trick */
div#wrapper1 {
width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 720 ? "720px" : "auto");
}
</style>
<![endif]-->


Live Well and Prosper!

My StumbleUpon Page | Another Firefox Fan's Site


Submitted by nachmore on Mon, 04/24/2006 - 11:09.

The point is spreading - If someone using IE comes here and sees a site that doesn't display correctly, he isn't going to stick around for long... 

--
Firemonger - Spreading Firefox One CD at a time...

Submitted by Kris Silver on Mon, 04/24/2006 - 18:53.

and not web standards, dodgey code (not that I'd know) it should be dealt with for any site including this one, if anything more so.  SFx is a bit dodge in IE which if anything says to IE users that Firefox and the coding related to it is different, bad, and annoying, which are all bad things to suggest to people.  At any site and including here, our doors should be open to ALL browsers, thats what were trying to push,

By the way SFx is in the process of being upgraded anyway and improvements will soon start to show, so it should get dealt with there, if not before by someone.