Making IE Standards Compliant 582
spin2cool writes "Dean Edwards has taken it upon himself to make Internet Explorer W3C compliant. How? Well, it isn't by patching the application, as you might suspect. He's created a stylesheet, dubbed 'IE7' that uses DHTML to load and parse style sheets into a form that IE can understand. Just include the style sheet in your HTML pages, and things should render correctly. The complexity of the CSS transformations is really amazing and shows off the power of this stuff."
firefox (Score:5, Informative)
Google cache (Score:5, Informative)
So - how are the plans going with implementing a slashdot cache?
Mirror offer (Score:1, Informative)
-- Asheesh.
Get firefox. (Score:4, Informative)
So if you havent downloaded it yet, get it now! [mozilla.org]. Avalible for Windows, Linux, Mac OS X and more!
Re:firefox (Score:1, Informative)
Re:Shows the power of IE (Score:5, Informative)
IIRC Moz and Opera do render all of CSS 1.0 correctly and nearly all of CSS 2.0 correctly. But doing some advanced things with CSS 2.0 (especially doing all formatting with it, instead of old table hacks) you really run into problems with both Moz and Opera.
Fixed in nightlies (Score:5, Informative)
More major changes since 0.8 here [squarefree.com].
Misleading title : corrects CSS2 selectors only. (Score:5, Informative)
The title of the news is misleading : this JS component only corrects some CSS 2 selectors that IE doesn't natively support.
So it doesn't really make IS standards compliant, it just extends some functionnality. It doesn't, for example, correct the box model of IE5.
So I'm afraid it doesn't spare us of using CSS hacks [centricle.com] to filter out IE.
Re:firefox (Score:5, Informative)
Re:Kudos, but... (Score:5, Informative)
in reality, they can of course by not using closed source software, but for some it seems percieved convenience is more important than freedom, but I digress)
What this does is allow developers of standards-based sites, which they have under their own control, to provide a stopgap for users who don't understand the issue of standards and so haven't themselves chosen freedom. So your digression doesn't quite match the facts. As a developer, I can choose to make my site work in Mozilla and KHTML - and will - but I can't choose to force my audience to use them. With this, if it works as advertised, I can choose to follow standards and still provide some means for those who have, for whatever reasons, chosen to use a non-free browser to use my content.
Mirror made (Score:5, Informative)
This is temporary, of course.
Re:Useful stylesheets (Score:5, Informative)
Re:Shows the power of IE (Score:5, Informative)
You are right, which is why some of the more esoteric features have been removed from CSS 2 and CSS 2.1 is about to be released.
However this is a lot different to Internet Explorer 6's situation. There are massive amounts of CSS 2 that simply aren't implemented, such as a whole bunch of selectors and tables.
The next time you see somebody complaining that CSS layout is hard, remember that there's probably a way to do what they want in a few lines of CSS, but that part of CSS simply doesn't work in Internet Explorer (but does in Mozilla, Konqueror, Opera, etc).
Re:All that's missing (Score:5, Informative)
Re:All that's missing (Score:4, Informative)
To a limited extent, yes [howtocreate.co.uk].
MOD PARENT UP, SCORE +20 FULL ON TRUE (Score:3, Informative)
Source Code for IE7 htc (Score:5, Informative)
partial mirror (Score:2, Informative)
This is only the IE behavior itself. (27 kB) [campus.luth.se]
Visit the containing directory to see a fix for IE's PNG rendering bug that also works on background PNG images.
Re:MSIE is the standard (Score:3, Informative)
Re:Shows the power of IE (Score:2, Informative)
Re:They're going to completely rewrite IE? (Score:2, Informative)
"who woulda thunk it?"
thunk -- code that performs a translation or conversion... like the stylesheet?
Okay... so I'm stretching definitions slightly. But I'll do anything for a pun.
This is a great idea (Score:5, Informative)
This would certainly make development a lot easier... I look forward to trying it out
Mirror (Score:4, Informative)
Re:Misleading title : corrects CSS2 selectors only (Score:2, Informative)
I believe (and I can't check as the site is down) that the effect of the stylesheet is to:
a) scan the stylesheets that come with the document and look for certian types of unsupported selectors
b) Replace those selectors with ones that IE does understand (i.e. copy the style rules to a new selector)
c) Scan through the html of the document and look for elements that matched the original (unsupported) selectors
d) Add a class attribute to the elements that should have matched the old selector that causes it to match the equivilent selector that IE does understand
e.g. an selector div > p will match p that is a child of div. IE doesn't understand child selectors, so given a rule:
div > p {font-family:"comic sans ms";}
the stylesheet will create a rule
and given a piece of document that should match like:
<div>
<p>
Isn't IE great!
</p>
</div>
It will be replaced (in memory) by something like:
<div>
<p class="uniquename">
Isn't IE great!
</p>
</div>
This will allow the IE style engine to apply the correct formatting.
Re:firefox (Score:5, Informative)
Actually, it varies; not all attributes are defined in that way. If you limit your remark to the href attributes of <a> elements, the HTML 4.01 specification defines them to contain CDATA as well. However you are misinterpreting the meaning of CDATA - CDATA includes character entities [w3.org].
Re:Fixed in nightlies (Score:3, Informative)
Re:Google cache (Score:4, Informative)
Although this would be very useful for tiny sites like those hosted on cable connections, but it's hard to tell in advance which sites will be slashdotted.
And either way, the choice should really be up to the web site owner. I'm sure most would prefer that people see their content versus having their server crushed, but you never know until you ask.
Re:Useful stylesheets (Score:2, Informative)
This is what Opera 7.20 uses by default:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.20 [en]
Because it contains MSIE it fools a lot of scripts, like yours.
Re:Google cache (Score:2, Informative)
And either way, the choice should really be up to the web site owner. I'm sure most would prefer that people see their content versus having their server crushed, but you never know until you ask.
Read the Slashdot FAQ. It explicitly states that the reason Taco et al. don't email to ask permission in these cases is because they don't want to delay "cool breaking news" for a few hours.
Seriously, the reason why this poor guy's server (in his kitchen, no less!) is a smoking crater is because the Slashdot editors didn't think we could wait a few hours to see this CSS hack.
Re:Making IE Standards compliant? (Score:5, Informative)
Just to clarify slightly - IE7 doesn't rely on serving up a different stylesheet, but an additional 'sheet. In other words, if you reference IE7 as your first 'sheet, existing stylesheets for compliant browsers will then render OK in IE.
If I've read it right you don't even need to sniff (well, at least not in the old-fasioned, java-script or server-side script sense): it's all done through CSS.
IE used to be advanced. (Score:2, Informative)
Today, we have Mozilla, KHTML/Safari and Opera and we can do what ever we want to do, all the modern stuff like CSS 2.0, tableless page layouts and other funky stuff you want to do in the year of 2004. It looks great in all browsers, except IE. Nowadays IE is the bad kid who destroys the party. I hope MS fixes it soon or lets it go the NN 4.* way.... please...
They got a solution for free (Score:1, Informative)
Retooling Slashdot with Web Standards [slashdot.org]
Mirror (Score:3, Informative)
Re:firefox (Score:2, Informative)
Changing all those to & is trivial, yes, but no less necessary for proper validation than an unclosed <b> tag.
p
Re:firefox (Score:4, Informative)
You are wrong. The HTML specification [w3.org] is very clear on the matter.
Re:I was expecting another kind of patch (Score:3, Informative)
Standards or just plain common sense? (Score:3, Informative)
I can't believe even MS would do something that stupid!!! Since I learned about forms on Netscape, it never occured to me that this problem could exist until I saw it for myself.
I couldn't care less about DHTML or CSS "compliance" when IE can't even act like a simple web client correctly!!
Eric
Is Mozilla hiding its' security problems? (Score:2, Informative)
"Official Mirror" (Score:2, Informative)
thanks to Lizard for this mirror:
http://edwards.furhome.net/ [furhome.net]
all html and xml examples should now work.
thanks again for all the offers for mirrors i've had.
dean edwardsRe:firefox (Score:4, Informative)
Re:All that's missing (Score:2, Informative)
However, none of them fully work; I've tried pretty much all of them and none of them will work with CSS or Javascript rollovers.
Re:All that's missing (Score:2, Informative)
You can make an ethernet adapter for that, which plugs in between your Windows machine and the network or cable modem. Simply take a standard CAT5 lead, cut it in half, and tape the ends shut. Then plug one half into the Windows computer, and the other half into the network.
Re:Useful stylesheets (Score:2, Informative)
Re:Shows the power of IE (Score:1, Informative)
You can, for instance, use hacks to feed specific values to IE only: Star HTML Selector Bug [info.com.ph] [Edwardson Tan]
There are numerous other such hacks available which exploit browser-specific bugs. There are ways to force IE into using the correct box-model, for instance, among many other things.
CSS Filters [dithered.com] [Dithered.com] is just one place you will find information on such hacks. I prefer to use the CSS-Only hacks, but here are listed some methods incorporating Java Script as well.
Best of all, mostly all of the very useful CSS hacks validate
Mirror of IE7 (Score:3, Informative)
This doesn't work (Score:2, Informative)
http://edwards.furhome.net/IE7/ [furhome.net]
thanks anyway Casey