Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

IE8 May Not Pass the Acid2 Test After All

Posted by Zonk on Wed Jan 23, 2008 01:02 PM
from the follow-me-indy-i-know-the-way dept.
dotne writes "CNET has published an article called Acid2, Acid3 and the power of default. The article predicts that IE8 will not pass the Acid2 test after all: '[Another] scenario could be that Microsoft requires Web pages to change the default settings by flagging that they really, really want to be rendered correctly. Web pages already have a way to say this (called doctype switching, which is supported by all browsers), but Microsoft has all but announced that IE8 will support yet another scheme. If the company decides to implement the new scheme, the Acid2 test — and all the other pages that use doctype switching — will not be rendered correctly.' Microsoft's IE8 render modes have been discussed here previously, and they've caused an uproar in the web development community. According to the scheme, authors must put Microsoft-specific <meta> tags into their pages in order for them to be rendered correctly. I doubt Acid2, nor Acid3 will have Microsoft extensions in them."
+ -
story

Related Stories

[+] Technology: Microsoft Confirms IE8 Has 3 Render Modes 525 comments
Dak RIT writes "In a blog post this week, Microsoft's IE Platform Architect, Chris Wilson, confirmed that IE8 will use three distinct modes to render web pages. The first two modes will render pages the same as IE7, depending on whether or not a DOCTYPE is provided ('Quirks Mode' and 'Standards Mode'). However, in order to take advantage of the improved standards compliance in IE8, Web developers will have to opt-in by adding an additional meta tag to their web pages. This improved standards mode is the same that was recently reported to pass the Acid 2 test, as was discussed here."
[+] Technology: IE8 Will Be Standards-Compliant By Default 383 comments
A number of readers wrote in to make sure we know about Microsoft's change of heart regarding IE8. The new version of the dominant browser will render in full standards mode by default. Developers wishing to use quirks mode for IE6- and IE7-compatible rendering will have to opt in explicitly. We've previously discussed IE8's render mode a few times. Perhaps Opera's complaint to the EU or the EU's record antitrust fine had something to do with Redmond's about-face.
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
More
Loading... please wait.
  • Page specific tuning (Score:5, Interesting)

    by mini me (132455) on Wednesday January 23 2008, @01:06PM (#22155692)
    It's possible that IE8 will contain code that detects the presence of an ACID test and switches to the proper renderer to pass the test.
    • by ozamosi (615254) on Wednesday January 23 2008, @01:15PM (#22155806) Homepage
      The author of Acid2/3 is not amused [hixie.ch] by this meta tag. From the tone of that blog post, to me it sounds like he wouldn't shy away from actively try to break a mechanism like that by changing the URI to make sure that the browser that passes the Acid test actually does so for real.

      Note, though, that he doesn't say that explicitly, and you shouldn't assume that he will. It's my own conclusion, and you should draw your own, etc...
      • Re: (Score:3, Insightful)

        by termix (680919)
        The meta tag is a GOOD idea, they just put it in the wrong place, EXISTING websites should be able to add a meta tag to continue use of the existing quirks mode, and going forward the default could then be acid mode.

        With that setup if people really wanted their website to render the old way they could just add a meta tag, and it doesn't mess with the new version of ie
        • by timster (32400) on Wednesday January 23 2008, @01:52PM (#22156418)
          Forgive me if I'm wrong (as I'm not an HTML guru in the least) but isn't that the point of DOCTYPE? Meaning, if a broken page wants to use the buggy renderer they shouldn't be setting a strict DOCTYPE.

          Microsoft is so committed to their long-standing policy of coddling the incompetent that they want a way to be lax on pages that specifically request a strict interpretation.
          • by KevMar (471257) on Wednesday January 23 2008, @02:06PM (#22156658) Homepage Journal
            The issue is that IE6 allowed people to use the strict rendering with out truly strictly rendering stuff. When IE7 was released that was more strict, it broke a lot of pages that assumed that strict worked because IE6 worked.

            They already corupted the doctype tag. The logic behind the new tag is to indicate the renderer you want so future releases do not break the current page.

            They dont want to break the web again (like IE7 did). So the web will work by default (as defined by IE 6) and new stuff that targets the new browser should not break when IE 9 is released.

            They are attempting to end a cycle of new browsers breaking older pages.

            What they need to do is do it right the first time and fix rendering bugs quickly. force people to fallow the standard and it will work. Microsoft should be the most accurate implementers of the specs because they have such a huge install base.
            • by Metasquares (555685) <slashdot@@@metasquared...com> on Wednesday January 23 2008, @02:22PM (#22156898) Homepage
              As I recall, the reason many pages broke between the IE6 / IE7 transition was because people were hacking up their CSS and the parsing bugs underlying their hacks failed.
            • by S.O.B. (136083) on Wednesday January 23 2008, @02:55PM (#22157426)
              Here, let me fix that for you:

              They are attempting to end a cycle of new Microsoft browsers breaking older pages.

              Opera, Mozilla/Firefox don't have this problem so why should Microsoft. By adding a tag that specifies the browser it makes the page browser specific and since we are talking IE it is now OS specific .

              Sure a web developer could code other browsers in the tag but it will be ignored by other browsers because other browsers already follow standards and don't require the hint. The metatag might as well be called "IEVersion(tm)" because that's what it is. Once again, Microsoft is trying to make a standard Microsoft specific because they are too stupid, lazy or ignorant to implement what everyone else on the planet has agreed to.

              Microsoft has no intention of ever being the "most accurate implementors of the specs" because they have no incentive. Implementing a standard does not make Microsoft more money, tying people to Microsoft products does.

              The tag gives Microsoft a get out of jail free card so they don't have to follow standards ever again. Using the tag only reinforces their behaviour.
              • by TENTH SHOW JAM (599239) on Wednesday January 23 2008, @06:53PM (#22161068) Homepage

                Opera, Mozilla/Firefox don't have this problem so why should Microsoft.

                My current version of Firefox does not pass Acid2. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

                Any browser that follows the standard deserves my admiration. Adding more meta tags where this stuff should be in the doc type is not a correct decision and should be reviled.



          • by twistedsymphony (956982) on Wednesday January 23 2008, @02:59PM (#22157502) Homepage

            Businesses can do as they please, but consumers can always vote with their browsers.
            The problem is that they don't usually vote that way but rather with a combination of ignorance and laziness.
          • by devjj (956776) on Wednesday January 23 2008, @03:28PM (#22158008)
            Most consumers don't know they even have a choice.
          • by jesuscyborg (903402) on Wednesday January 23 2008, @04:45PM (#22159248)

            Businesses can do as they please, but consumers can always vote with their browsers.
            Yes, consumers can "vote with their browsers" by choosing to use the ones that support all the awesome capabilities described in W3 standards! You know, those features that no website utilizes because IE doesn't support them.

            New standards don't mean anything if no one uses them. A non-developer switching to a browser like Firefox simply because it "supports standards" would be like buying a high definition television fifteen years ago; you're still getting the same quality broadcasts.

            W3 standards don't catch on because they're not intended for the end-user, they're intended for developers. End-users don't care that the columns on your website were coded in CSS rather than a table. If you want people to switch to a more developer friendly browser, you have to give 'em the old razzle dazzle. For example, let's say Macromedia Flash was introduced later in the game, relied on a W3C standard instead of a browser plugin, and that standard was only supported by non-IE browsers. Developers would be so anxious to use Flash that they would leave IE users in the dust, encouraging them to switch if they wanted to see the fancy dynamic content. IE users would then feel left out and switch to Firefox, which would end up with a 70% market share before Microsoft could even blink.
    • Re: (Score:3, Insightful)

      by Z00L00K (682162)
      HOW am I not surprised?

      But I don't think that we are going to see much of that special tag anyway since those who care about standards will shy it and those who doesn't will ignore it anyway and continue with their broken pages...

      But wasn't Microsoft going to push Silverlight (or whatever they call it) instead???

      At least - we need this tag and the circumventions for special pages about as much as we need severe dandruff...

  • by geminidomino (614729) * on Wednesday January 23 2008, @01:07PM (#22155698) Homepage Journal
    shout "SURPRISE!" in unison.
  • Steamrollin' On (Score:5, Insightful)

    by flaming error (1041742) on Wednesday January 23 2008, @01:07PM (#22155708) Journal
    > I doubt Acid2, nor Acid3 will have Microsoft extensions in them.

    But lots of web pages will.
    • Re:Steamrollin' On (Score:5, Insightful)

      by Yetihehe (971185) on Wednesday January 23 2008, @01:23PM (#22155948)
      My pages WILL have them, if it's easier to make render them correctly than custom hacking. I may not like IE8 but my clients will use it and they will require that my pages work ok on ie(6|7|8), firefox and opera.
      • Re:Steamrollin' On (Score:4, Insightful)

        by filbranden (1168407) on Wednesday January 23 2008, @02:19PM (#22156852)

        they will require that my pages work ok on ie(6|7|8), firefox and opera.

        Then the tag won't serve your purpose. It won't make IE6 or IE7 render like IE8 would. The objective of the tag is the opposite, is for newer versions keep rendering broken pages as they render in broken versions of the browser.

        As long as you'll need to support IE6 (or IE7 for what it's worth) you won't need the tag at all.

  • by PPH (736903) on Wednesday January 23 2008, @01:08PM (#22155712)
    ... Microsoft ignores standards, goes off in their own direction.

    News at 11.

  • Amazing (Score:5, Insightful)

    by idontgno (624372) on Wednesday January 23 2008, @01:13PM (#22155782) Journal

    Another Microsoft "We'll do it our way, and you'll do it our way too if you know what's good for you."

    I wish Microsoft would at least learn to fake sincerity in actually following common standards. This isn't even lip service. This is "We follow standards (for certain Microsoft-centric values of 'standards')."

    Of course, the market has rewarded them, so why should they change? All they need is smoke, some mirrors, and some moderately-skilled PR, et Voilà! "standards-compliant!"

    • Re:Amazing (Score:5, Insightful)

      by Bogtha (906264) on Wednesday January 23 2008, @01:43PM (#22156250)

      I think you're missing the point somewhat here, as are a lot of people. The core issue is that Microsoft have painted themselves into a corner by not following the specifications in the past. This makes it difficult to follow the specifications today, as all the pages that expect Internet Explorer to deviate from the specifications will break if Internet Explorer starts following the specifications.

      They solved this in the past by inventing doctype switching, which is a pretty poorly-thought out hack, and with conditional comments, which uses non-standard syntax. This approach, on the other hand, uses standard HTML syntax and is designed for this purpose.

      Far from being "A Microsoft extension to HTML" as some people are describing it, this is an attempt to retain backwards compatibility while fixing Internet Explorer to more closely follow the specifications. It does this using the standard HTML way of incorporating additional metadata. Let me repeat that: what you are seeing is Microsoft improving conformance with the specifications. The mechanism they are adding is so that older code doesn't break, which is an entirely reasonable thing to want.

      If you have a better idea of how they can satisfy the constraints of backwards compatibility and closer conformance to the specifications, please, describe it. As far as I can see, this is the best way of doing it. Sure, it's their own fault they are in this mess, but bitching about their past behaviour doesn't mean that this attempt to fix things is the wrong approach. Microsoft are doing the right thing here.

      • Re:Amazing (Score:4, Insightful)

        by SL Baur (19540) <steve@xemacs.org> on Wednesday January 23 2008, @06:14PM (#22160578) Homepage Journal

        I think you're missing the point somewhat here, as are a lot of people. The core issue is that Microsoft have painted themselves into a corner by not following the specifications in the past.
        I think you have part of it right, just complete the thought.

        First, Microsoft only does things to further their own goals. This is not a matter for the convenience of non-Microsoft developers. This is an internal engineering decision for the benefit of internal Microsoft Windows developers same as the paragraph-spacing-for-word96-for-macos "tags" in MSOOXML.

        Second, Internet Explorer is a critical operating system component. Moreover, it functionally has a similar role to that of the Unix shell. As such, its defaults for how it renders HTML is a fundamental system interface. Nobody is perfect here. As an analogy, consider how on Linux systems, /bin/sh is usually a link to bash, then people write shell scripts with #!/bin/sh and then use bash extensions, which of course breaks when a Posix compliant /bin/sh exists. See we can make the same mistake too. The difference is that the Microsoft engineering team can't just tell apps to fix themselves (or have the users recompile the now-broken app). They must support the old interface in the same way that they have to keep other ABIs compatible.

        Do you see how this makes sense? IE8 can't break IE6 stuffs because that's a critical O/S interface that too many internal components rely upon. We can just say "You're an idiot. If you must use bashisms in scripts, you must also use #!/bin/bash #!/bin/bash-4.0.6 or whatever." Microsoft doesn't have the same luxury.

        Defaulting to IE6 behavior makes total sense if you think of it this way. So what would you rather have, standards compliance when viewing web pr0n and a non-functional MS Windows O/S (which probably cannot boot far enough to even get to the point where you can look at pr0n in the first place) or having your O/S continue to work as it has?

        As a general engineering solution, relying on specific version numbers to control behavior went out of fashion a couple decades ago. I'm not surprised other browser developers are not enthusiastic about the idea. However, I'm also not surprised to see this kind of thing in an end-to-end controlled environment where you can trace specific desired "non-standard" behavior to a specific version number and act accordingly.

        I will now present the source code to Internet Explorer 8:

        #include <ieglobals.h>
        extern int getDesiredIEVersion(int, char **, char **);

        void main(argc, argv, envp)
        int argc;
        char **argv, **envp;
        {
            switch (getDesiredIEVersion(argc, argv, envp)) {
            case 6:
            default:
                ie6_main(argc, argv, envp);
                break;
            case 7:
                ie7_main(argc, argv, envp);
                break;
            case 8:
                ie8_main(argc, argv, envp);
                break;
            }
        }
          • Re:Amazing (Score:4, Insightful)

            by LordLucless (582312) on Wednesday January 23 2008, @03:34PM (#22158138)
            MS required a bigger change to websites earlier, when they deliberately broke IE6 as a result of the Eolas dispute. If they can break their browser to get around patent disputes, but not to comply with standards, it just shows where their priorities are.

            But this is a major new rendering engine, switching to it by default when it is totally unproven is a really bad idea.

            The idea is that MS would test their engine before shipping. A bit of an assumption, I know, but that's the theory.
  • by Ohio Calvinist (895750) on Wednesday January 23 2008, @01:13PM (#22155788)
    Why not make Acid2 the default? I'm sure the browsers interals could look for IE6/7 "hacks" and provide a icon on the bottom to have it viewed in compatibility mode? If the broken mode is going to be the default, I think standardization will be slow, unless common developer tools like MS Visual Studio and Dreamweaver put in the MS Specfic renderer tags in by default.

    I think we're at the moment when developers want standards, where in the IE4/NS4 war, everyone and their brother was trying to hack-together web pages, and IE did some nice exposition of the DOM via the ID attribute in tags, which accomodated less-skilled programmers. Now that the baseline-developer's skills are improved, and the IDEs out there are actually pretty decent (e.g. Not FrontPage, Not MS Word) I'd say the time is right.

    While the Acid2 test is niceity, what I'd really love to see is a standard plugin model shared by FF and IE. It has been a while, but I always thought the "EMBED" inside of an "OBJECT" tag was lame. I don't like ActiveX but I get in intranet environments where it can be useful, where the code should be "trusted" and "signed", where you're essentially using a browser to "publish" applications that should probably be desktop applets, or use a native HTML (AJAX?) interface rather than "VB applet on a webpage." That being said, we need an out in the wild, "safe" plugin/viewer model.
    • by alexgieg (948359) <alexgieg@gmail.com> on Wednesday January 23 2008, @01:35PM (#22156140) Homepage

      Why not make Acid2 the default?
      Because lots and lots and LOTS of pages would break, among other things. Earlier today there was another article in ./ with a link to the full rationale behind this [alistapart.com], and to me is makes a lot of sense. Basically, with this tag you can specify a version for each browser on which the site was tested and is known to work well, then all browsers might keep internally working versions of their legacy rendering engines (or a compatibility mode built in their newest engine, whatever works best in each case), and forever in future you'd have old sites being 100% readable in new browsers, no matter how much actually existing "de facto" and "official" standards change or get deprecated/replaced over time. An example from the above link, specifying the page renders correctly in IE 8's engine, Firefox 3's engine and (say) Opera 4's engine:

      <meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4" />

      What is there to not like in this? It's a simple, elegant and practical solution to this very real problem. Sure, it could have arrived earlier, but better later than never.
      • by samkass (174571) on Wednesday January 23 2008, @01:49PM (#22156360) Homepage Journal
        It's a simple, elegant and practical solution to this very real problem.

        It's a problem, though, that only Microsoft has. Everyone else is just expected to conform to the standards.

        Read here [webkit.org] for the WebKit team's response to this and why they're not going to define or obey any such tags themselves.
      • by Kjella (173770) on Wednesday January 23 2008, @02:11PM (#22156734) Homepage

        <meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4" />
        What is there to not like in this? It's a simple, elegant and practical solution to this very real problem. Sure, it could have arrived earlier, but better later than never.
        I do know what all the non-IE users here on slashdot will say, and there's quite a few of them (myself included). First off, it looks like only Microsoft will use this, other browsers seem to have broken compatibility early and often and have a fairly rigorous standards compliance. I'm sure evil tounges will say it's because only a minority use these browsers, but I've not heard any noise over Firefox or Opera breaking pages by fixing things. On the whole they seem to be way ahead of web developers, so the benefit of extending it to other engines is pretty much neglible I'd say.

        The possible downside is that precisely because these buggy pages work in IE, noone will bother to fix them. Imagine you're at IE12 and it's now a super anal 99.9% standards compatible browser in IE12 mode. What good will it do if pages still call for IE7 compatibility mode and are still broken on every other browser? That said, between "We won't fix the browser because it'd break sites" and "We won't fix the pages because they work" I think the latter is easier to fix and new code would presumably be written to spec and work in all browsers. So it's something of a percieved downside which I don't think is real.

        Now, if I take on my hat as an IE user it's a slam dunk. More pages will work. If I take on the hat as a web developer, I know my pages won't suddenly break (because you were forced to use an IE hack to make it work right in the first place). Also a slam dunk. If I take on the hat of Microsoft, they don't get screaming customers about how they broke the intranet. Also a slam dunk. If Microsoft was really really nice, they'd put in their status line "This web page is designed for a higher version of IE. Please upgrade to ensure optimum performance" too, so we'd lose these buggy versions as quickly as possible.

        It's easier to cut the developers loose and let them fix IE than the pains of trying to slowly break IE while not getting killed by angry customers. The sooner they get a standards compliant browser out there, the sooner we can get to *really* fixing the problem.
      • by TheMCP (121589) on Wednesday January 23 2008, @02:48PM (#22157348) Homepage

        What is there to not like in this? It's a simple, elegant and practical solution to this very real problem.
        First of all, I've been working in software long enough to know that I can't trust it for a minute. Oh sure, they may say they're going to maintain all these special compatibility modes, but in reality one or more of the major browsers won't do it, or they'll try but they'll screw it up, or they'll do it for a while and then suddenly drop all the backwards compatibility stuff because they don't feel like maintaining it any more. Regardless, eventually it will come to pass that I can't trust the version specifying mechanism to do me any good, and I'll have to update my pages anyway.

        Secondly, it encourages the web to come to a halt, technology wise. As an expensive consultant to big companies, my experience has been that they all want to try to tell you "our web site has to look perfect on every version of every browser ever invented, period." Of course that's impossible, so once I drill it through their head that it's impossible, they have to settle for some major subset, at which time they always want me to use ancient UI technology for maximum compatibility. (Seriously, I deal with people who freak out if I want to use CSS positioning or an iframe, and god help me if I mention AJAX.) If they got the idea that browsers have a magical compatibility mode so that all future browsers will support pages written for today's browsers, they'll instantly write up a corporate policy that basically says that nothing will ever change again and for the rest of time their web site will be maintained as if it is forever 2005, and then they won't change it until someone practically holds a gun to their head to force them to.

        Now, you're asking yourself, why should you care? Because it's more than a few idiots, it's a substantial portion of the web. Sure, there will always be little guys who will come along and innovate, but do you really want to deal with a web full of sites that forever use 2005 technology and just a few sites that have caught on to the latest stuff?

        • Re: (Score:3, Informative)

          by hr.wien (986516)

          Yeah, I'd be fine with that, but that is unfortunately not how it works. IE8 will default to IE7 mode, and will only be standards compliant if you add the tag telling it you want it to be. That's what the uproar is about. This solution basically makes sure IE7 will be around (and targeted by developers not knowing any better) forever.

  • IDGI (Score:5, Funny)

    by the_B0fh (208483) on Wednesday January 23 2008, @01:15PM (#22155810) Homepage
    I don't get it. Why is there such an issue. As a dominant software company, Microsoft should be allowed to do what it wants. After all, what is best for Microsoft is also the best for America.


    Therefore, if you are against Microsoft, you must be a terrorist.


    Please report yourself to the nearest detention center for correction.

  • Eh? (Score:3, Funny)

    by Luke Dawson (956412) on Wednesday January 23 2008, @01:29PM (#22156048)

    [Another] scenario could be that Microsoft requires Web pages to change the default settings by flagging that they really, really want to be rendered correctly.
    So all this time, they've assumed that we don't want our pages rendered correctly? Hmmm, that actually explains a lot...
  • by MobyDisk (75490) on Wednesday January 23 2008, @01:33PM (#22156100) Homepage
    The reason this is happening is because IE6 already actually uses the doctype tags. Depending on the doctype, it renders in quirks mode or in standards compliance mode, just like Firefox. The problem is that the standards compliance mode isn't even close to standards compliant. So now we have quirks mode, IE6 standards compliance mode, and IE7 standards compliance mode. Microsoft dug this hole and now the only way to fix it without breaking pages is to add yet another mechanism.

    Microsoft kept redefining the meaning of "standard" so that they were right and everyone else was wrong. Now that they are actually starting to follow the standard, they are scrambling trying to make sure that it doesn't look like they were ever wrong.
  • by Chris_Jefferson (581445) on Wednesday January 23 2008, @01:42PM (#22156242) Homepage
    I replied on the previous thread on this.. I shouldn't really post again, but I feel I have to.

    Yes, in a magical perfect world, Microsoft would use DOCTYPE to tell if a page wants standard-compatible rendering, and simply break all the pages which have a correct DOCTYPE but then rely, either on purpose or by accident, on IE6 and IE7 bugs. But most of their customers don't want them to, and so they aren't going to.

    Therefore they are trying to offer an alternative. An alternative you can either put in as a meta tag or a HTTP header. I can't think of anything they could do in practice which would be better than this, other than the one thing they would never do, which is break old webpages which rendered correctly on IE6/7.
  • by Myopic (18616) on Wednesday January 23 2008, @01:44PM (#22156280)
    I just want to point out that these ongoing shenanigans show that IE is not a web browser. The whole world (including Microsoft) got together and decided exactly what a "web page" is and wrote it down in very clear specifications. So, anyone who writes a piece of software that renders a web page, as defined by those specifications, is a web browser. If you write software that does anything else, then that isn't a web browser. Therefore, insofar as IE does not render web pages, it is not a web browser. So, if anyone complains that your documents don't look right when they view them in IE, gently explain to them that your documents are web pages, and to view them the person needs a web browser, and IE isn't a web browser.

    That leaves open the question of exactly what IE is.
  • by guruevi (827432) <(evi) (at) (smokingcube.be)> on Wednesday January 23 2008, @01:45PM (#22156286) Homepage
    1995 called, they want their <blink> and <marquee> tags back
  • by Animats (122034) on Wednesday January 23 2008, @02:25PM (#22156942) Homepage

    The real problem isn't on the browser side. It's in Dreamweaver, the most popular web page design tool. Dreamweaver does not create valid HTML or XHTML. Not even close. Create a page in Dreamweaver for anything later than HTML 3.2 and run it through the W3C validator. It will fail.

    The basic problem is that the Dreamweaver people never really figured out what to do about CSS. In theory, CSS is supposed to have some abstract model of the format of some block of text, like TeX does. In practice, there's usually a big block of CSS with machine-generated names at the beginning of the web page. There's a fundamental disconnect between the CSS model and the Dreamweaver "Properties" box. So Dreamweaver is still inserting I, B and FONT tags.

    In layout, Dreamweaver does table-based layout quite well, but DIV/FLOAT/CLEAR layout isn't handled well. Much of this is due to the limitations of the DIV/FLOAT/CLEAR approach. Tables are a 2D grid system, and map well to the drag-the-lines editor in Dreamweaver. DIV/FLOAT/CLEAR doesn't map well to a visual layout editor.

    The end result is a mess. And HTML 5 doesn't help.

  • by 200_success (623160) on Wednesday January 23 2008, @02:55PM (#22157422)

    Microsoft claims that the X-UA-Compatible flag is necessary on standards-compatible content to avoid breaking IE-specific content. I call BS.

    For years, Microsoft has been telling everyone to put version-specific IE hacks in conditional comments [microsoft.com], in case IE's behavior improves in future versions. Now that they are finally fixing IE, they spring this X-UA-Compatible "solution" on us, punishing those who have been producing standards-compliant content and rewarding the zombies who have been writing IE-specific code. If your site is standards-compliant, you have to do the extra work to tag it as such, and keep that crufty tag around for the foreseeable future!

    If you sat down today and wrote a new standards-compliant browser, it would work just fine with almost all the content and web applications out there. Apple did this recently with Safari. Microsoft claims to have done this with IE 8. Safari didn't need any X-UA-Compatible flag. Why should IE 8 need one?

    The only reason IE 8 would need the X-UA-Compatible flag is simply because it is IE 8. If their new browser identified itself as, say, "Microsoft Trident VI [wikipedia.org]" instead, things would just work. Microsoft could still call it "Internet Explorer 8" for marketing purposes, but web developers would know that "MS Trident VI" means IE 8, just as "WebKit 4xx" means Safari 2 (or similar browsers) and Gecko means Firefox (or similar browsers).

    Dear Microsoft, here's a sane solution for you:

    1. Ditch the X-UA-Compatible flag; it's a stupid idea.
    2. Continue supporting HTML conditional comments as you have been doing.
    3. Fix the layout engine and the CSS parser at the same time, so that any existing IE-specific CSS hacks become irrelevant.
    4. Add support for CSS conditional comments, to give web designers an escape route. Let's face it, CSS hacks are a reality, so we might as well have a tool to do it cleanly.
    5. Send this as the User-Agent string: Mozilla/5.0 (compatible; Microsoft Trident VI; Windows NT x.y; ...; Microsoft Internet Explorer 8.0; ...). Any server-side code doing browser sniffing, not seeing the "MSIE" string, should send a standards-compliant response. User-Agent strings have never really been logical anyway -- IE started this mess years ago by sending the "Mozilla" string, and Opera continued the trend by optionally sending the "MSIE" string -- so additional games in this area wouldn't do any more harm to the Web.
    6. In JScript, navigator.appName should return 'Microsoft Trident', and navigator.userAgent should return the string above. Client-side scripts doing explicit browser sniffing, not seeing the "MSIE" string, would suppress their legacy IE hacks.
    7. In JScript, document.all should evaluate to false (although expressions involving document.all can still behave as in older versions of IE). This approach worked for Mozilla [mozillazine.org], and it will work for Microsoft too.

    As you see, it is possible to fix IE in a backward compatible way without introducing a X-UA-Compatible flag. The chances of Microsoft taking these steps is almost nil, since it places IE 8 on an even playing field with other standards-compliant browsers. That's why they are proposing X-UA-Compatible -- they can claim to support web standards while knowing that web developers will find it easier to muddle along than to use their stupid flag.

    • by Phillup (317168) on Wednesday January 23 2008, @01:21PM (#22155910)

      IF MS were to change the way pages rendered with existing doctypes, millions of pages could/would render differently requiring businesses and individuals across the world to either re-vamp their websites or at least change the existing doctype to a new name that referred to the old rendering style.
      Sounds like just the medicine they need for creating browser specific web pages.

      In other news, many Americans against government bailout of mortgage companies that made bad loans...
    • by ushering05401 (1086795) on Wednesday January 23 2008, @01:23PM (#22155952)
      On a purely philosophical point... what is the use of having an international standard if the said standard changes based on the whims of a single corporation?

      I get your point, and you may have a more real-world-ready opinion than some of us, but I am not ready to concede anything to MS in this regard.

      There are other ways MS could address this issue rather than continuing their embrace extend destroy strategies. There is no reason IE specific tags should be required to make a page display according to an international standard.

      If anything, broken pages should require tags to inform the browser that they do not conform to standards, and thus require special attention - not the other way around.
    • Re: (Score:3, Interesting)

      by TheSunborn (68004)
      but all theese millions of pages pages render fine in firefox, using standard mode so why can't they render fine in ie8?

    • Re: (Score:3, Interesting)

      by Rakishi (759894)

      As such, ACID should be updated to include the new doctype option for IE.
      Given there is is going to be no new doctype, from what MS is saying, this won't be of much use. Of course had you read even the article SUMMARY instead of ranting about how people shouldn't bash MS you'd have known this. Then again you can't karma whore by being reasonable and responding to the actual issue instead of a strawman so I guess that's out of the question for you.
    • by PJ1216 (1063738) * on Wednesday January 23 2008, @01:26PM (#22155996) Homepage

      That ACID(2,3) tests are designed to test browsers, browsers are not designed to test ACID. As such, ACID should be updated to include the new doctype option for IE.
      So, if I take a test and don't pass it, the test should update itself to include my wrong answers?
      ACID is designed to test a browser's adherence to a set standard. Its not designed to just 'test' a browser to see if it works. It's designed to see if it works the way a browser should. I say break the millions of web-pages and force them to get updated.
    • Re: (Score:3, Insightful)

      by Runefox (905204)
      Well, if standards compliance is going to break web apps, then why not just implement the new tag as a compatibility mode flag to activate the IE6/7 quirks mode instead of doing it the other way around? App devs can just add that meta tag to their web apps, and the rest of the world can code to a standard that doesn't involve MS.

      I really think that'd be the best way to go, and you'd probably agree that this isn't an anti-ms rhetoric. I code HTML, too, and I really think that if IE8 can do ACTUAL standards c
      • Re: (Score:3, Insightful)

        by RingDev (879105)

        the tag should instead be a tag to go into "Legacy" mode.

        There's the problem... WHO is going to go through all of the Legacy websites to update that HTML?

        In the last 8 years I've probably done 20 websites for various NFP's, schools, and organizations I've been a member of or was hired by. The vast majority of those sites are for organizations that have little to no internal IT department. If IE8 renders the page differently than IE6/7, even if it does so in a more standards compliant way, it is still going to make their pages appear incorrect, and they have no o

        • by AmaDaden (794446) on Wednesday January 23 2008, @02:15PM (#22156790)

          WHO is going to go through all of the Legacy websites to update that HTML?

          In the last 8 years I've probably done 20 websites for various NFP's, schools, and organizations I've been a member of or was hired by.
          You just answered your own question. It should be VERY trivial to add the one line of MS-HTML to these sites for you. They don't feel like paying someone to do it? Then they get a broken web site. It's sounds like I'm being an ass but in the long run it will be far less work for everyone. The switch over to standard HTML has to happen at some point, delaying it with stupid tricks is not going to make it any easier. If MS keeps up this kind of crap anyone coding to IE will just have a huge mess on their hands. They are just making it harder for web developers from here on out and by doing that they are shooting them self in the foot.
    • by kebes (861706) on Wednesday January 23 2008, @01:33PM (#22156108) Journal

      IF MS were to change the way pages rendered with existing doctypes, millions of pages could/would render differently requiring businesses and individuals across the world to either re-vamp their websites or at least change the existing doctype to a new name that referred to the old rendering style.
      I don't buy it (or maybe I just don't get it--if so, please explain).

      IE (just like Firefox, etc.) has a "quirks" mode which renders things in a non-standards compliant way, but is designed to "more or less work" with all the pages out there that are not strictly coded. This new tag is supposed to apply to web-pages where the web author has already explicitly said he wants strict rendering, because he said so in the DOCTYPE. But instead of just fixing IE so that it renders that standards-compliant code better and better, they propose to freeze that rendering sub-engine, and force web-developers to add a new tag that basically says "yes I really meant I wanted you to render strictly!"

      It seems to me that the majority of pages that rely on rendering quirks will be okay, since they will be rendered in quirks mode. But pages that were intended to be standards-compliant should be treated as such.

      Microsoft's plan isn't sustainable or elegant: they basically want the entire web-community to add another tag each time MS releases a new version of IE. (If they want a custom tag for the IE7->IE8 transition, they probably will want a new one for the next transition...) The entire point of these standards was to get away from browser-specific tags and hacks. A web developer shouldn't have to think about what browsers are on the market today (or 3 years from now): he should just code to the standard.

      Put otherwise: Instead of asking everyone who has written a standards-compliant page to add-in a non-standard tag to make it work in IE... wouldn't it be easier to tell everyone "hey, if you've coded a page that is ~almost~ standards-compliant, but relies in some way on IE7-specific behavior, then add in this <NotQuiteStandard> tag, and IE8 will render it like IE7."
      • by Bogtha (906264) on Wednesday January 23 2008, @02:40PM (#22157210)

        This new tag is supposed to apply to web-pages where the web author has already explicitly said he wants strict rendering, because he said so in the DOCTYPE.

        No, that's not at all the case.

        Way back when the web was first taking off in a big way, browser vendors were adding lots of proprietary element types and attributes. Most of them weren't very well thought out, but there was a pressing need to get them into a specification to ensure interoperability. The result was HTML 3.2, with a lot of stuff that really shouldn't be in there.

        The next version of HTML took all these out again because better ways (e.g. CSS) had been developed to handle their functionality. Of course, there needed to be an upgrade path from HTML 3.2 to HTML 4, so the W3C published HTML 4 in two major forms — a backwards-compatible document type, called "Transitional", and a modern document type, called "Strict".

        That's what the "strict" refers to in the doctype. It's got nothing to do with rendering modes.

        Now, when Internet Explorer 5 for the Mac was being developed, Microsoft realised that they couldn't improve its conformance to the specifications without breaking backwards compatibility. They came up with a hack that guessed whether to be backwards-compatible or specifications-compatible by looking at the doctype to see if it was there, if it was out of date, etc.

        This "doctype switching" is a proprietary, non-standard hack, that happened to catch on amongst browsers. The fact that a document refers to the strict doctype does not imply that the developer is choosing a particular rendering mode, it just means that they are using a modern document type.

        But instead of just fixing IE so that it renders that standards-compliant code better and better

        No, this is exactly what they are doing, and this is the very reason why such a switch is necessary.

        Microsoft's plan isn't sustainable or elegant: they basically want the entire web-community to add another tag each time MS releases a new version of IE.

        No, this isn't the case. Any developer who wants Internet Explorer to use its most recent rendering engine at all times can select "edge" and be done with it.

        The entire point of these standards was to get away from browser-specific tags and hacks.

        Yes, and this is an attempt to do just that. Doctype switching is a proprietary hack. <meta> is the standard HTML method of including metadata. Furthermore, providing a switch like this allows them to slowly deprecate the older rendering engines over time.

        Put otherwise: Instead of asking everyone who has written a standards-compliant page to add-in a non-standard tag to make it work in IE... wouldn't it be easier to tell everyone "hey, if you've coded a page that is ~almost~ standards-compliant, but relies in some way on IE7-specific behavior, then add in this <NotQuiteStandard> tag, and IE8 will render it like IE7."

        No, this would cause mass regressions because there are a hell of a lot of unmaintained websites out there.

        • by NereusRen (811533) on Wednesday January 23 2008, @05:57PM (#22160292)

          No, this isn't the case. Any developer who wants Internet Explorer to use its most recent rendering engine at all times can select "edge" and be done with it.
          Am I the only one who doesn't find this reassuring in the least?

          Setting -- 2014 AD. Microsoft's IE10 includes a dramatically improved rendering engine with better compliance to standards. This causes it to render pages significantly differently from IE8 and IE9.

          Microsoft: "To take advantage of our new rendering engine, please add the following tag to each page: [...]"

          Us: "What about the 'edge' attribute? Shouldn't you force everyone who specified that to follow standards by rendering their pages with the new engine?"

          Microsoft: "Too many pages are using that to mean 'render like IE8/9,' and using browser-specific hacks for those engines. It would break the web if we changed the rendering of those pages. Don't worry, we've added the attribute 'modern' that will always mean 'use the latest rendering engine,' so you'll never have this problem again."

          Us: [facepalm]
    • IF MS were to change the way pages rendered with existing doctypes, millions of pages could/would render differently requiring businesses and individuals across the world to either re-vamp their websites or at least change the existing doctype to a new name that referred to the old rendering style.

      Allow me to vehemently disagree with this premise. As it has been said, "no, there is ... another" and in this case there is an option you and Microsoft have totally overlooked. Think of the ignored person behind the keyboard; let the user decide!

      Yes, let the site break by default. Let it render like hell, without any change to the site. Just offer the user a "try to make this site look better" button, that will switch through the various so-called "compatibility" rendering modes.

      Microsoft always d

    • Re:so? (Score:5, Informative)

      by peragrin (659227) on Wednesday January 23 2008, @01:28PM (#22156032)
      Firefox 3 should be ale to pass the acid 2 test. They have been working on it, and they don't introduce custom extensions to doctypes to render correctly, rather they are fixing their browser itself.

      MSFT dug itself into a hole. instead of getting out and filling the hole back in they are digging another hole to bring people down to their level.
      • Re: (Score:3, Informative)

        by scubamage (727538)
        Not to mention FF 3 is able to at least *mostly* render Acid3, and once its out of beta i wouldn't be surprised if it was fully compliant. Also, Acid 3 is still in testing. I just don't get why microsoft insists on eschewing standards. They exist for a reason, so people only have to do something once. Ugh, idiocy, thy name is microsoft.