Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Internet Explorer The Internet Programming IT Technology

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."
This discussion has been archived. No new comments can be posted.

Making IE Standards Compliant

Comments Filter:
  • by Anonymous Coward on Friday March 12, 2004 @07:16AM (#8541741)
    This will probably get modded down - but this hack really does show the power of IE that you can deploy a script fix to browser problems.

    And before people start attacking ie for saying that mozilla supports xyz css and ie6 doesn't - mozilla was last released yesterday - ie6 was released 2+ years ago. Most of these css3 features weren't even finalised as w3c guidelines when ie6 was released.

    Great to see the css3 support though - removes the need for so hard-to-manage javascript hacks.

    SharedID [sharedid.com] - Single Sign On for web applications
  • Re:firefox (Score:5, Interesting)

    by ideatrack ( 702667 ) on Friday March 12, 2004 @07:29AM (#8541812)
    But this is why FireFox still isn't onto release one. I also get problems on my XP box using some sites, especially forms; but there are also still sites that don't work correctly in any release.

    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.
  • Re:firefox (Score:5, Interesting)

    by foolip ( 588195 ) on Friday March 12, 2004 @07:32AM (#8541829) Homepage

    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!

  • Re:.name? (Score:2, Interesting)

    by plugger ( 450839 ) on Friday March 12, 2004 @07:43AM (#8541880) Homepage
    Go to www.ntk.net and look through the last few editions. They were running a challenge to register the silliest .name domains (such as no.name , so you can host www.the.man.with.no.name)
  • Dean Edwards (Score:5, Interesting)

    by amigoro ( 761348 ) on Friday March 12, 2004 @07:44AM (#8541889) Homepage Journal
    I thought this was something about the democratic nominations, but then saw Kerry [mithuro.com] was missing.

    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.

  • by davetrainer ( 587868 ) <slashdot.davetrainer@com> on Friday March 12, 2004 @07:45AM (#8541890)
    I think I'd personally be more interested in a stylesheet that . . . crashes them.
    Your wait is over [webmasterworld.com].
  • by SlashMaster ( 62630 ) on Friday March 12, 2004 @07:48AM (#8541908)
    Anyone who cares this much about the company's product should be given serious consideration for employment.

    Microsoft should hire him...
  • Re:firefox (Score:5, Interesting)

    by Imperator ( 17614 ) <slashdot2 AT omershenker DOT net> on Friday March 12, 2004 @07:49AM (#8541913)
    That's pretty sad, for /. to mess with their server settings to disable the w3 validator. Their HTML has been terribly broken for years. I don't understand what they do with all that money they have, because they sure haven't been improving the site very much. Makes me glad I don't subscribe and I block their ads.
  • by next1 ( 742094 ) on Friday March 12, 2004 @07:52AM (#8541924) Journal
    current project i'm working on i did all css layout (ie; no tables) and had opposite experience: same code was fine in moz / opera, needed completely different version for ie5 and ie6 due to various bugs in each.

    now actually reverting to tables for a lot of the layout because of it.
  • by gusnz ( 455113 ) on Friday March 12, 2004 @07:56AM (#8541942) Homepage
    And what's more, it doesn't even fully support CSS1, which was released in 1996! Try the ComplexSpiral [meyerweb.com] demo, which is a neat demo of the effects possible in Mozilla, Opera and Safari with the 'background-attachment:' CSS1 property, which IE supports only on the BODY tag. Also, let's add 'position: static' support onto our wishlist (for watermarks/menus on pages) and PNG alpha support, and a whole bevy of regular CSS rendering bugs [positioniseverything.net] that have remained unsolved for years. MS claims "full CSS1 compliance", but in reality they only support the reduced CSS1 core spec.

    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!
  • Re:Google cache (Score:5, Interesting)

    by nacturation ( 646836 ) <nacturation AT gmail DOT com> on Friday March 12, 2004 @07:58AM (#8541955) Journal
    I still don't know why Slashdot doesn't reference non-high bandwidth sites using the freecache service [archive.org]. All that needs to be done is prefix the URL with http://freecache.org/ and follow it with the full regular URL, eg:

    http://freecache.org/http://www.slowsite.com/big _p ictures.html

    It benefits the site owner by having reduced bandwidth costs and it also benefits Slashdot as we can read the articles.
  • Re:firefox (Score:4, Interesting)

    by /ASCII ( 86998 ) on Friday March 12, 2004 @07:59AM (#8541963) Homepage
    Check those errors a little more carefully. There are a whole bunch of errors about URIs of the type 'http://ads.osdn.com/?ad_id=2336&alloc_id=5672&sit e_id=1&request'. I'm too lazy to check if this is actually a valid to skip the pagename on an URI with a query, but I belive it is. But no matter what, each such URI generates about a dozen errors, which is bogus. Most of the other errors have to do with rendering hints like 'marginwidth' and 'bgcolor', which where not a part of the HTML 3.2 standard but are noncritical.

  • Re:firefox (Score:2, Interesting)

    by boffy_b ( 699458 ) on Friday March 12, 2004 @08:01AM (#8541970) Homepage
    I tried adding a trailing slash, worked once, then stopped. I tried taking out the "www." before "slashdot.org", worked a few times, then stopped. Looks like /. has its tinfoil hat firmly on against its users.
  • Microsoft can fix IE (Score:5, Interesting)

    by jonwil ( 467024 ) on Friday March 12, 2004 @08:08AM (#8541995)
    If what I have seen in the "file list" from the leaked MS code still holds true, all the HTML rendering, CSS, PNG and etc stuff is in DLLs that are totally seperate from the OS and could easily be updated independantly.

    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)"
  • by Zaiff Urgulbunger ( 591514 ) on Friday March 12, 2004 @08:09AM (#8541998)
    I feel your pain!

    I've had weirdness with different IE versions too, like where I have some content with images floated right; words okay in IE5 and IE6, but in IE5.5, the images cover the content. And don't forget that Mac IE is different again!

    But I have found myself that using standards compliant code, and then JavaScript to fix "anomalies" is pretty good. Using CSS hacks always seems to be asking for problems to me, whereas with JS you can target specific browser versions.
  • Re:firefox (Score:5, Interesting)

    by Wullis ( 317403 ) on Friday March 12, 2004 @08:41AM (#8542140)

    Perhaps it's slashdot that needs to be made standards compliant!

    The magazine A List Apart [alistapart.com] has already redone Slashdot's design with web standards. Look here:

  • ignorance (Score:2, Interesting)

    by Anonymous Coward on Friday March 12, 2004 @08:53AM (#8542187)
    you know microsoft: ignore the standards they don't like while pushing the half-assed replacement they come up with

    i can see it now...

    windows xp recomended update #5946468
    css.net:
    this update gives IE6 the ability to properly* display css using the .net framework (excessivly large, almost useless .net framework must be installed seperatly from this update)

    *through emulation only, we're microsoft damnit! we don't bow down to anyone bitch!
  • by JimDabell ( 42870 ) on Friday March 12, 2004 @09:01AM (#8542233) Homepage

    It really isn't so shocking that years elapse between the recommendations and implementations

    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.

  • by hattig ( 47930 ) on Friday March 12, 2004 @09:07AM (#8542276) Journal
    It wouldn't be a quick and simple task but ... ... couldn't someone somehow port the rendering part of Mozilla/Firefox/Konqueror to Windows, in such a manner that they export the same interface as those DLLs, and hence simply replace the rendering component of IE with something decent?
  • by tiger99 ( 725715 ) on Friday March 12, 2004 @09:14AM (#8542304)
    But it is illegal, at least in the UK. Delibarately crashing another program is a criminal offence under the Computer Misuse Act.

    The sad thing is that the law does not get applied to the biggest criminal of them all, the Convicted Monopolist.

  • by tiger99 ( 725715 ) on Friday March 12, 2004 @09:27AM (#8542367)
    It shows very little about IE except that as a browser it is an obsolete, insecure and bug-infested piece of illegally commingled code, which is so entwined with the equally insecure and bug-infested OS that it can't be fixed.

    It does however show a great degree of skill on the part of the programmer, in the use of the limited and corrupt subset of CSS which actually works on the obsolete browser, and a great deal of patience in finding and working around countless undocumented bugs and features, despite the obstruction and wilful obfuscation caused by the actions of the Criminal Monopolist.

  • by Mr_Silver ( 213637 ) on Friday March 12, 2004 @09:33AM (#8542403)
    This would be useful for something like AvantBrowser [avantbrowser.com], CrazyBrowser [crazybrowser.com] or MyIE2 [myie2.com] which use the IE rendering engine but add other nice features such as pop-up blockers and tabbed browsing.

    It would be pretty simple for them to have a local copy of the stylesheet and modify the HTML from the server to include this before rendering.

  • by nazh ( 604234 ) on Friday March 12, 2004 @09:33AM (#8542406) Homepage Journal

    msie crashes because of the p:first-letter and the em in the first paragraph, (p)(em)text

    it probably doesn't know how to handle this, maybe tries to applie the style to the em-tag or something, anyway it takes the easy way out and crashes ;)


    One a side note, had that document been a proper xhtml1.1 document, which should have been sent as application/xhtml+xml not as text/html as it is. msie wouldn't have displayed it at all, giving you a download dialog when trying to load it. xhtml media types [w3.org]

  • by tootlemonde ( 579170 ) on Friday March 12, 2004 @09:58AM (#8542548)

    Some posters perceive a climate of hostility on Slashdot to certain ideas, particularly pro-Microsoft and pro-government-regulation ones.

    Although these ideas may attract a disproportionate share of hostile reaction, the very fact that they generate so much reaction indicates that people are interested enough in the ideas to debate them. It suggests that a large number users are looking for an argument.

    Passionate intensity [well.com] is no measure of truth and is often a mask for uncertainty. However, it can be a measure of the importance of an idea or proposition. It indicates that something important may be at stake.

    The benefit for more dispassionate readers is that they often learn more when conflicting ideas are forcefully presented than when everyone takes a measured approach.

  • by Anonymous Coward on Friday March 12, 2004 @10:38AM (#8542830)
    Still no cure for bug #97283 in Mozilla [mozilla.org]. Simple thing:
    <div style="overflow:auto; height:50px; width:50px">

    1<br />
    2<br />
    3<br />
    4<br />
    5<br />

    </div>
    Mousewheel: Does not scroll down
    Space: Does not page down
    Page-Down: Does not page down
    Cursorkey-Down: Does not scroll down

    "Microsofts Invention", the iframe works like a charm in Mozilla, simple W3C CSS fails. Since 2001.
  • Re:Get firefox. (Score:3, Interesting)

    by NeoSkandranon ( 515696 ) on Friday March 12, 2004 @10:39AM (#8542840)
    I've read on mozillazine that if you minimize Fx, it's supposed to release most/all of its memory down to only a meg or two
  • Re:Kudos, but... (Score:5, Interesting)

    by Daniel_Staal ( 609844 ) <DStaal@usa.net> on Friday March 12, 2004 @10:44AM (#8542877)
    Good theory. Unfortunately, MS has made that very difficult. There are several basic CSS/HTML formating options that work differently under IE than the standard specifies; differently enough that if you were to use them the page would either work in IE or in standards-compliant browsers. (But not both.)

    There are work arounds, using semi-legit CSS that fails in one browser or another and lets each browser see what it understands. But that is really just coding to the browser again, and occasionally breaks as groups upgrade their browsers. This promises a one-stop shop for all the main problems.
  • by thesolo ( 131008 ) * <slap@fighttheriaa.org> on Friday March 12, 2004 @10:49AM (#8542923) Homepage
    this hack really does show the power of IE...ie6 was released 2+ years ago. Most of these css3 features weren't even finalised as w3c guidelines when ie6 was released.

    I call BS on that. Even features which IE did implement, it couldn't get right. For example, IE's implementation of getElementById is extremely flawed [mikepalumbo.com]. It also doesn't support lots of things, like the CSS Width property [mezzoblue.com], properly. (IE treats width as min-width, and doesn't provide real width support.)

    This isn't a testament to IE's scalability, hackability, or another ability you might come up with. It's just another reason why it's a piss-poor browser. We need additional code to make IE properly understand standards; that's atrocious.

    Also, if you want to see how IE stacks up against a browser like Firefox, I have made a quick comparison [realfx.com] between the two. Its a little old now, and it was using Firebird 0.7 (not Firefox), but it's still a valid comparison. IE 6 chokes horribly on CSS, plain & simple.
  • by ChristTrekker ( 91442 ) on Friday March 12, 2004 @11:01AM (#8543018)

    Can I feign ignorance? "Sorry, officer. I was just trying to use legitimate stylistic commands that render so nicely in Netscape/Opera/Safari/etc. I had no idea that Microsoft's browser was so buggy."

  • by Nspace13 ( 654963 ) on Friday March 12, 2004 @11:57AM (#8543496) Homepage
    Well it is not a stylesheet but this will crash IE nicely. Anywhere in your page include this tag

    <input type='crash' />

    Seems kind of ironic.
  • by scrytch ( 9198 ) <chuck@myrealbox.com> on Friday March 12, 2004 @12:17PM (#8543653)
    > This will probably get modded down - but this hack really does show the power of IE that you can deploy a script fix to browser problems.

    What it shows is the power of DHTML behaviors. Microsoft has only ever used them for cutesy little hacks, but with them you can pretty much filter and transform selected elements into arbitrary HTML, including script elements. The closest thing mozilla has to this is XBL, which aside from being almost completely undocumented, is insanely difficult to write.

    I understand the author of this hack has behaviors for mozilla ... I'd be very interested in seeing that once the slashdotting stops. Assuming he still has any bandwidth quota left.
  • by Lothsahn ( 221388 ) <Lothsahn@@@SPAM_ ... tardsgooglmailcm> on Friday March 12, 2004 @12:18PM (#8543668)
    It doesn't crash in IE for me. What version of IE are you using, and under what windows?
  • by jonadab ( 583620 ) on Friday March 12, 2004 @12:20PM (#8543698) Homepage Journal
    > what if you don't have a windows computer to see how 'it looks' under IE?

    Exchange screenshots with another webmaster who does use IE. I've got a couple
    of people I trade screenshots with regularly. They like this arrangement,
    because my screenshots show some edge cases that most people would miss.
    I always take a series of shots showing scalability from 640x480 up through
    at least 1280x1024, and I always show what the site looks like with and without
    page colors turned on (and my system colors are medium-contrast light-on-dark,
    which shows up stuff that gets missed if you use black-on-white). Also I tend
    to take screenshots with about three different rendering engines (always Gecko,
    plus usually Konqueror and one or more of Opera, W3, Links, Lynx). So my
    approach shows up a lot of edge cases that more typical setups (black-text,
    white-background, MSIE, 800x600, page colors enabled) won't see.

    Yes, it's possible to design a web page that looks "right" under all of the
    above settings. (By "right", I mean it looks like it was designed for those
    settings.) Eye candy in the graphical browsers, without breaking the text
    browsers; client-side scripts that automate things if scripts are enabled,
    without breaking the site if scripts aren't enabled. Images that look good
    (no jaggy edges) against either a light _or_ dark background. (This is
    tricky if you have to support browsers with no proper alpha channel, but
    it can be done; the trick is to set the background color when you save your
    PNG images, so that non-alpha-channel browsers (*cough* MSIE) will antialias
    against that color -- set that to the same color as the surrounding background
    and you get to be Bob's nephew. Or use the MSIE PNG-alpha-channel hack, but
    not all versions of MSIE support that, and it still leaves old versions of
    Opera out in the cold.)
  • by Anonymous Coward on Friday March 12, 2004 @12:50PM (#8544080)
    Crashes for me..

    From IE About:

    Version: 6.0.2800.1106.xpsp2.030422-1633

    I'm not running XP SP2, however. Which is odd.. Just XP SP1 with all the latest Windows Updates on it.
  • by sydb ( 176695 ) <[michael] [at] [wd21.co.uk]> on Friday March 12, 2004 @01:36PM (#8544652)
    You've been modded a troll and it's probably right. But it's Friday, and I'm fed up with illiterate morons and I agree with you.

    I come across this all the time. People send emails with stuff like:

    "Can someone, please look at, this."

    What does it mean? By the way, this is a manager. She gets paid more than me and yet she can't string simple written English together.

    Sometimes I wonder what goes on in peoples' minds, then I realise I'd rather not know.
  • by Tackhead ( 54550 ) on Friday March 12, 2004 @02:56PM (#8545584)
    > I always take a series of shots showing scalability from 640x480 up through at least 1280x1024,

    You're probably doing this, but many other sites (heh, usually IE-only sites) sure as heck aren't. What about 320x480, 400x600, 640x1024?

    Not everybody browses with their web browser taking up the full window! Half a window, aligned portrait-style, is easier on the eyes because it requires less horizontal eye movement than "fullscreen". Horizontal scrolling is evil -- doubly so to users who go out of their way to minimize read-speed and comprehension-slowing horizontal eye movement by resizing their browsers to prevent it.

For God's sake, stop researching for a while and begin to think!

Working...