Slashdot Mirror


Microsoft Sends Broken Stylesheets to Opera

An anonymous reader writes "The Register has a story that the MSN homepage serves a different style sheet to the Opera web browser that makes Opera appear to be broken. Is this deliberate or a mistake? Who can possibly say? Opera's own take on the situation can be found here." This is not the first time.

27 of 938 comments (clear)

  1. No fear of prosecurion, no problem! by Sun+Tzu · · Score: 5, Insightful
    It's back to the bad old days at Microsoft... Sounds a lot like how they killed DR-DOS, but on a smaller scale.

    Send us your Linux Sysadmin articles.

    1. Re:No fear of prosecurion, no problem! by Strange+Ranger · · Score: 5, Funny

      >back to the bad old days at Microsoft

      Drat, I must have missed the good days.

      --

      Operator, give me the number for 911!
    2. Re:No fear of prosecurion, no problem! by critter_hunter · · Score: 5, Informative

      MSDN has a similar behavior. I don't give a shit about MSN, but I needed to download the DirectX 8.1 SDK (to use OGRE) the other, and it was hell. I fact, I needed to identify as Mozilla 5 to see more than a few unrelated links on this page (try it if you have Opera. Change your identifier and reload the page)

      --
      Karma: Could be worse (could be raining)
  2. Opera should respond by pubjames · · Score: 5, Funny

    Opera should respond by automatically translating any page on the Microsoft web site into German and back again with Babelfish.

    1. Re:Opera should respond by evilviper · · Score: 5, Funny

      "Welcommen to SmallDelicate.com"

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    2. Re:Opera should respond by Anonymous Coward · · Score: 5, Funny

      Pornoliz it http://www.pornolize.com/

  3. Oddity to me by unterderbrucke · · Score: 5, Interesting

    Why did they pick Opera, and not Mozilla or Netscape, not to mention Safari?

  4. Not Just opera broken by cluge · · Score: 5, Interesting


    Older version of IE were also purposely broken in the same way; forced obelesence? As a regular Opera user I notice the same problem on some portions of the Microsoft web site as well (not just MSN).

    To me this just proves that the remedy isn't working, that MS as a company prefers dirty tricks to competition and that the states that have not agreed to settlement had better press MS hard. (Wow holy run on sentence batman). It's sad that a company as successful and as full of talented people as MS has to resort to this type of behavior when a competitor comes out with a good product.

    I'm reminded of a famous quote "Can't we just all get a long". I guess if your MS and you can't or won't compete the answer is no.

    --
    "Science is about ego as much as it is about discovery and truth " - I said it, so sue me.
  5. Actually by hafree · · Score: 5, Interesting

    According to the web logs on the various sites I host, Mozilla and other Gecko-based browsers make up almost 15% of web traffic now, and Opera has a signficant enough user-base that it also makes it into the top 10 user-agents on web sites that get 1M+ hits per month from 100+ countries. I think the problem is that people need to move away from Microsoft web deveopment tools until they can learn to play nice and output standards-compliant HTML code. Ever try using the "save as HTML" feature in a Microsoft product? A 100-row table becomes a 2MB plaintext file by the time it makes it to the web...

  6. Re:Standards schmandards. by u38cg · · Score: 5, Interesting
    Well, not neccesarily. I don't think it's unreasonable (as a provider, not a web zealot) that a server doles out pages that are renderable. Where it's possible to predict what needs to be changed to get a browser to render that page properly, you might as well do it. Of course, it does have the potential to be abused.

    My browser is set to send nonsense as its id strings; it doesn't seem to do my surfing experience much harm.

    --
    [FUCK BETA]
  7. It is pretty easy to do by MetalShard · · Score: 5, Interesting

    I used to have different style sheets for different browsers in an effort to make my websites look good for all of them. More than once I updated some of the html and only tested the pages in IE where they looked fine (I know, I know, but programmers are naturally lazy.) It turns out the style sheets for the other browsers totally made the pages look broken. I'm not defending MS. It would not surprise me if they did it on purpose, but I am saying it is easy to do. Now I just have one style sheet and I made sure to use simpler html that would look good on all browsers. Sometimes simple is better.

  8. www.wannabrowser.com by KalvinB · · Score: 5, Informative

    You can see how webpages react to various browsers at www.wannabrowser.com

    I'm not going to bother posting the results here but it's easy enough to see for yourself what the differences are.

    Ben

  9. Re:Sites del. diff. content to different browsers. by Blimey85 · · Score: 5, Insightful
    Write to the standards, not browsers.

    This is fine for a personal or hobby site but for e-commerce, you need to write to users, not standards. It makes no difference to the user that your page is coded to standards if he/she can't view it. Telling them they need a different browser isn't the answer either. Showing them what they want, in a manner that works correctly with their browser, is unfortunately the best solution if you want to be profitable.

    I've had to code drop down menus differently for different browsers to get things to look the same, however when I'm done, you get the exact same page, with everything the same size and in the same place in IE, Netscape, Mozilla, and Konqueror. I've never used Opera so I don't test that one, but I guess I probably should.

    --
    How is it that one careless match can start a forest fire, but it takes a whole box to start a campfire?
  10. Re:Standards schmandards. by questionlp · · Score: 5, Interesting

    W3C calls their CSS and HTML specifications as "Recommendations" rather than "Requirements" or "Standard", per se. Instead, they provide specifications on how user agents (be it browsers or cell phones) are recommended to follow.

    Of course, it would be lovely if all browser makers were to forced to follow the recommendations down to the nitty gritty, but even the recommendations don't always provide strict requirements on how a property or class should be rendered.

    The fact that Microsoft is pushing out (delibrately) a broken style sheet is just wrong.

  11. Re:Standards schmandards. by rknop · · Score: 5, Insightful

    Anyone, including Microsoft, who writes a site that serves seperate pages to different browsers is doing a disservice to the public.

    While I agree with the philosophy, unfortunately it's unrealistic. Reason: so many browsers, worst among them Netscape 4, try to support CSS and fail so miserably that a standards-complaint CSS page is likely to be unreadable. And, unfortunately, some people still use NS4 and old versions of IE.

    What I've done some places is write some SSI that detects the browser. If it detects Netscape 4 or lower, or IE ... probably 4 or lower, I forget at the moment ... it sends a "dumbed down" style sheet that will present only a faint echo of the layout of the page, but which will leave the text readable. Any other browser, you get the normal "standards compliant" style sheet. Note that here I am sending specific style sheets for specific browsers-- but I assume that any version of Opera, and any version of Netscape or Mozilla 5 or greater and any recent IE and any other browser that may come is standards complaint.

    -Rob

  12. Re:We need browser masking. by rknop · · Score: 5, Insightful

    As an unfortunate side-effect, this would reinforce webmasters' belief that everybody in the world uses MSIE.

    Yep. What we really need is too late to accomplish. What we really need is a protocol that forbids you from identifying which browser you are, but only allows you to specify to which standards you conform.

    Then maybe webmasters would write their HTML and such the way they're supposed to, and what's more the browsers would have to really support the standards they claim to support.

    But, unfortunately, that's an ideal world, not the one we live in.

    -Rob

  13. Slashdot and w3.org... by jonr · · Score: 5, Interesting

    On (semi) related topic. Why has slashdot.org blocked validator.w3.org? Are they embarresed by the results? After all I can always do a "Save as" and then upload the page to the validator.
    Pretty childish, if you ask me.
    J.

    1. Re:Slashdot and w3.org... by Anonymous Coward · · Score: 5, Funny

      I predict a mysterious but sudden moderation to -1 Offtopic in your future...

  14. the reason they are targeting opera by a7244270 · · Score: 5, Insightful

    MS lost out bigtime by failing to convince the cellphone manufacturers to adopt their embedded OS - most of the bignames plan to use Simian (is that how you spell it) which uses Opera as its browser.

    The reality is that most windows users will never change their browser from IE to something else, so they are not afraid of Mozilla, konq, Safari, etc.

    The cellphone market on the other hand is HUGE, and given recent advances in wireless bandwith, has the potential to be highly lucrative.

    More than likely its probably safe to say that a significant percentage of all web browsing in the future will be on cellphones.

    They are attempting to ensure that non MS cellphones can't surf the web properly, in an attempt to make consumers prefer buying MS enabled webphones, which in turn will generate more revenue in the embedded market for them, which they desperately need.

    Just my opinion tho - can never tell what does guys are up to...

  15. Make Opera appear broken?? by MongooseCN · · Score: 5, Insightful

    If I went to MS's site and the webpage they sent was broken, I would think MS had an incompetent webmaster who didn't know HTML. I wouldn't think Opera was broken.

  16. Re:What is the alternative? by DickBreath · · Score: 5, Insightful

    MS are free to serve up whatever they like on their servers.

    Are you sure?
    Without consequence as to what?

    Okay. I'll use your logic, and the same logic as some other posts here from Microsoft agents.

    I want to start serving stuff from my site that takes advantage of all known exploits in IE browsers. After all, it's my site. I can serve whatever I want. It's my business.

    If users don't like it, then they should use Mozilla or Opera.

    If you're a Microsoft user, why would you want to come to my site anyway?

    It's just an accident. Give me the benefit of the doubt.

    I'll probably get modded redundant since my above four arguments have already been made.

    --

    I'll see your senator, and I'll raise you two judges.
  17. Re:Quite the contrary by Isofarro · · Score: 5, Insightful
    I don't know where you got this myopic view of the Web from, but it is certainly trollish from a standards POV. Obviously the technique of augmentative authoring has eluded you.

    If you are creating multiple copies of resources for different user agent strings, then it is a prime indication you haven't understood the very simple concept of the World Wide Web.

    For various reasons ( including access to the reading disabled) every site should, at the very least, serve a different page to pure text browsers than it does to graphical browsers.


    Making a website accessible does not mean text-only. This is a myth, and a badly misinformed piece of strawman fluff. Text-versions of websites should only be a last resort, when you've reached the point where you admit your design and markup skills are inadequate to do even a competant job, let alone a good one. Accessible websites can also be well designed, there's no mutual exclusivity.

    The whole *point* of identifying browsers at all is to allow the server to serve optimized pages for different browsers.


    If you so strongly want to believe this nonsense, please post a reference to either a standard or recommendation that states that User-Agent is a mandatory HTTP parameter. You know as well as I do that User-Agent strings are optional, and relying on them to determine presentation is so typically short-sighted that its now laughable.

    You cannot succeed over the medium to long term adopting a browser-sniff route. It is folly.

  18. Re:Clearly This Sucks but.... by Okojo · · Score: 5, Informative

    Actually I spoke too soon and am going to take back what I said. I loaded up the page in Opera 6.0 and the margin -30 is supposed to fix a bug in Opera 6.0's rendering of lists. In fact, it's the very same problem I ran into while designing some webpages a few weeks ago that annoyed me to no end. Basically, Opera 6.0 indents list items by about 30 pixels to the right, unlike other browsers. Thus that -30 value is there to correct that problem. Opera 7.0 doesn't exhibit that tabbing effect (thus consistant with the latest IE and Mozilla browsers). Apparently MSN is serving Opera 7.0 the same CSS sheet as Opera 6.0 even though 7.0 works best when it's served the same style sheet as IE. Thus, saying that this problem is browser sabotage is too strong of an accusation.

  19. Truly unrecognized browsers are treated similarly by Noel · · Score: 5, Interesting

    I messed around with a few other UserAgent strings, and it gets a little clearer:

    "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.0 [en]" -> site.css

    "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Oprah 7.0 [en]" -> site-win-ie6.css

    So far, exactly as reported in the article

    "Mozilla/4.0 (compatible) Oprah 7.0 [en]" -> site.css

    "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.1) Oprah 7.0 [en]" -> site-win-ie5.css

    "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1; Opera 7.0) Oprah 7.0 [en]" -> site.css

    It's pretty clear what they're doing:

    if string contains "Opera", use site.css
    else if string contains "MSIE 6.0", use site-win-ie6.css
    else if string containse "MSIE 5.5", use site-win-ie5.css
    else use site.css

    In other words, it doesn't matter what Opera claims to be compatible with - they always get the default sheet, just like a completely unrecognized browser does.

    I'm trying to apply Hanlon's Razor here, but it's hard...

  20. this is typical, the .NET framework does this, too by sirshannon · · Score: 5, Insightful

    My biggest complaint about the .NET framework:

    the .NET framework does a check to see which browser you use and then sends formats aspx pages for the capabilities of that browser. So if you use abs positioned divs, you'll get those for modern browsers but Netscape 4.7 (for instance) will get the same page (theoretically) but formatted via tables. This is great, if only MS were honest about it.

    I constantly have to hard-code formatting for controls because MS treats Netscape 6 as a 'down-level' browser and doesn't bother sending out certain formatting tags. So some pages look bad in Netscape 6, the reason behind it would be that the formatting tags weren't sent out because Netscape doesn't support them, but this is false because when I add them by hand, netscape handles them fine and my pages look the same in both browsers.

    I have to believe that MS does this so people say "this page looks like azz in Netscape" and assume that it's Netscape's problem.

    the framework has been out for too long and this is still not fixed, so I can not believe that it is an honest or innocent mistake.

  21. Re:Standards schmandards. by FuzzyBad-Mofo · · Score: 5, Informative

    Here's a tip for including CSS without having to worry about NS4 and (I think) IE4 screwing it up:
    Use the CSS2 @import rule to import your style sheet.

    The version 4 browsers will ignore this tag, therefore you don't have to worry about crashing NS4 with your perfectly valid CSS.
    Example:

    <style type="text/css" media="all">@import url(main.css);</style>
  22. Re:Clearly This Sucks but.... by howcome · · Score: 5, Informative

    This is not correct.

    Opera6 shows the page that MSIE6 receives just fine. I even included a screenshot of it on my page -- scroll down to the second image.

    If you still believe this is Opera6's fault, please provide a test case showing how it fails.