Slashdot Log In
Making IE Standards Compliant
Posted by
CowboyNeal
on Fri Mar 12, 2004 06:11 AM
from the clever-css-tricks dept.
from the clever-css-tricks dept.
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."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Kudos, but... (Score:5, Insightful)
Re:Kudos, but... (Score:5, Insightful)
What's unusual in this case is that closed proprietry software has been "changed" without access to the source.
It's not sad that someone other than Microsoft had to do it. It's sad that people other than Microsoft can't do such things a whole lot more.
(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)
Parent
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.
Parent
All he has to do now (Score:5, Funny)
I'm sure the CSS is a work of technical art; seeing it would be even better.
Re:All he has to do now (Score:5, Funny)
Parent
firefox (Score:5, Informative)
Re:firefox (Score:5, Interesting)
IE has the usual MS philosophy in that if something doesn't comply with the way they've done it, who cares because everyone will change to their way of thinking. I agree with those who don't like that someone else has to clean up after MS but what else are you going to do? For better or worse it is, and will be for a while yet, what most non-techy people use.
Parent
Re:firefox (Score:5, Interesting)
Perhaps it's slashdot that needs to be made standards compliant! It would seem that someone doesn't want us to know [w3.org] how compliant it is.
It seems WDG had better luck getting through [htmlhelp.com], but look at all those errors!
Parent
Re:firefox (Score:5, Informative)
Parent
Re:firefox (Score:5, Interesting)
Parent
Re:firefox (Score:5, Interesting)
The magazine A List Apart [alistapart.com] has already redone Slashdot's design with web standards. Look here:
Parent
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].
Parent
Re:firefox (Score:5, Funny)
Parent
Fixed in nightlies (Score:5, Informative)
More major changes since 0.8 here [squarefree.com].
Parent
Re:firefox (Score:5, Insightful)
Parent
Google cache (Score:5, Informative)
So - how are the plans going with implementing a slashdot cache?
Re:Google cache (Score:5, Interesting)
http://freecache.org/http://www.slowsite.com/bi
It benefits the site owner by having reduced bandwidth costs and it also benefits Slashdot as we can read the articles.
Parent
Id say (Score:5, Funny)
Nice (Score:5, Insightful)
In any event, this may allow me to actually use some CSS 2, a standard that was published in May 1998 (almost 6 years ago!) and still isn't (fully) supported by the leading browser in the world...
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.
Dean Edwards (Score:5, Interesting)
Flippancy apart, I think using CSS to make IE7 W3C compliant is a really brilliant idea. However, the browser itself is a small part of the equations. Very few websites are W3C compliant. Vast majority of them are geared to a certain browser, depending on the whim and fancy of the designer.
For my part, I run my sites thru Anybrowser [anybrowser.com] to make sure they will render on, well, as the name suggests, any browser.
Microsoft should hire him (Score:5, Interesting)
Microsoft should hire him...
Re:Microsoft should hire him (Score:5, Insightful)
Wouldn't life be grand if Microsoft shipped the open source Mozilla as their default browser?
Parent
Re:Microsoft should hire him (Score:5, Funny)
There's a greater possibility that Microsoft will pay him to STFU.
Parent
Mirror made (Score:5, Informative)
This is temporary, of course.
Microsoft can fix IE (Score:5, Interesting)
When Microsoft says "we cant fix xyz", it usually means "we cant fix xyz because it would cost us more (in money, programmer time etc) than we are going to gain (in sales, PR etc)"
Source Code for IE7 htc (Score:5, Informative)
This is a great idea (Score:5, Informative)
This would certainly make development a lot easier... I look forward to trying it out
I was expecting another kind of patch (Score:5, Insightful)
Rather than fixing IE, how about using the same method to make Mozilla render pages designed for IE correctly?
Mozilla is my favorite browser in both Windows and Linux platforms, and it works so well that whenever I stumble with a broken page, I blame it to site designers, not Mozilla, and move along.
However, sometimes I need to browse the broken page. Wouldn't it be cool if you could fire up some DHTML code to parse the broken page and make it standards compliant, so Mozilla (and others) can read it flawlessly?
This wouldn't encourage correct site design, but while in that fight, it would be a nice temporary solution.... do you think this could be done?
Cute, but... (Score:5, Insightful)
The point is, CSS2 doesn't fill its intended purpose for those who must support legacy apps. Its faster to bite the bullet and format layouts with tables, and it works for ancient browsers (Netscape 4.x anyone?). To me, that's one of the main advantages of JSP, PHP, ASP, and the like: I can include complex logic in my site and output lame ole' HTML 4.01. Code and UI are separated, and everyone is happy.
Besides, take a lesson from Google, simple layouts are best.
Corporate Business Strategy (Score:5, Funny)
Re:Shows the power of IE (Score:5, Insightful)
Parent
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.
Parent
Re:Shows the power of IE (Score:5, Interesting)
now actually reverting to tables for a lot of the layout because of it.
Parent
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).
Parent
Re:Implementing CSS is HARD (Score:5, Interesting)
The W3C have now changed policy so that in order to get to full Recommendation status, a specification has to have at least two independent implementations. If nobody can implement it, it gets kicked back a stage or two for reevaluation. This should help combat the "nice specs, shame about the real world" problem a little.
Parent
Re:Shows the power of IE (Score:5, Interesting)
And to think it'll be a wait of several years before IE is updated with Longhorn... until then, writing pure CSS sites is going to remain a bug-whacking chore. Let's all be collectively glad that MS fought so hard for their "Freedom to Innovate" back in the anti-trust days
P.S. redesign slashdot [alistapart.com] using modern web standards, editors!
Parent
Re:Shows the power of IE (Score:5, Funny)
The power of IE is that it's broken but it may be possible to fix it?
I have a powerful car for sale if you're interested.
Parent
Shows the power of Open Source (Score:5, Insightful)
> released 2+ years ago
So, you're saying that the problem is not IE but the broken proprietry way of building softwarwe that can't can release new versions in time to answer real customer needs?
I think I agree
Gilad
Parent
Re:Shows the power of IE (Score:5, Insightful)
Remember when Microsoft was releasing and improving IE on a rapid basis? Let's see, when did Microsoft allegedly win the browser war? Oh, about two years ago. When did Microsoft stop innovating IE? Oh, about two years ago. Since then, Microsoft doesn't care cause they have the browser market locked up. Therefore we need to download stuff like this and google toolbars to add pop up blocking and all kind of other third party stuff to get IE up to some modern day level.
Parent
Re:Useful stylesheets (Score:5, Funny)
That doesn't require style sheets, just normal webpages.
Parent
Re:Useful stylesheets (Score:5, Interesting)
Parent
Re:Useful stylesheets (Score:5, Informative)
Parent
Re:Useful stylesheets (Score:5, Insightful)
Other than that, every other site I use works great in Mozilla, including banking sites and other sites that you'd think would be tempted to make the IE-only mistake.
What I don't miss is the pop-up I used to have to endure in IE when I disabled ActiveX, not to mention it's countless lack of features (tabbed browsing, popup blocking, etc,...).
Parent
Re:Making IE Standards compliant? (Score:5, Insightful)
Parent
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.
Parent
Re:Making IE Standards compliant? (Score:5, Insightful)
The trouble is...what if you don't have a windows computer to see how 'it looks' under IE? I can run just about any other browser under the sun on my development stations, all linux....except IE.
I'm still trying to figure how to run IE under wine...but, never have been able to do it with no windows partitions...
Parent
Re:Making IE Standards compliant? (Score:5, Funny)
My problem with this patch is its name - it was DoNotUseIE.phoenix, then DoNotUseIE.bird, now - apparently - its DoNotUseIE.patch. Enough already!
;)
Parent
Re:All that's missing (Score:5, Informative)
Parent
Re:MSIE is the standard (Score:5, Insightful)
What I'd love to see someone do at some point is re-skin FireFox to look like IE and then abuse one of IE's many security holes to replace IE with the reskinned FireFox on any machine that visits the website.
Parent