Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
The Internet IT

Safari Passes the Acid2 Test 430

TigerX writes "The Mac web browser Safari has become the first browser to pass the Acid2 test. Acid2 is a CSS/HTML test suite put out by the Web Standards Project (WASP). Developer David Hyatt had been working on the project for the past few weeks. Details can be found at his blog. The patched Safari is not yet avaliable for public consumption. It is unknown when the patches will appear in a public version of Safari."
This discussion has been archived. No new comments can be posted.

Safari Passes the Acid2 Test

Comments Filter:
  • Re:Go Apple! (Score:3, Insightful)

    by ergo98 ( 9391 ) on Thursday April 28, 2005 @11:23AM (#12372271) Homepage Journal
    Big companies care about standards when they're the underdog and it suits them.
  • by James_Duncan8181 ( 588316 ) on Thursday April 28, 2005 @11:25AM (#12372294) Homepage
    It should also be noted that all of the fixes done on the Safari KHTML codebase will eventually work their way back to Konqueror proper, meaning that GNU/Linux will benefit directly from this. *smiles* Thanks, Apple.
  • Re:Go Apple! (Score:2, Insightful)

    by polyp2000 ( 444682 ) on Thursday April 28, 2005 @11:26AM (#12372308) Homepage Journal
    I think that the KHTML team ought to get their fair share of the glory since this is on what safari is based.

    Nick ...
  • by lukewarmfusion ( 726141 ) on Thursday April 28, 2005 @11:27AM (#12372325) Homepage Journal
    No, the test was designed to use code that many developers would use and many would use incorrectly. There are details on how a browser should handle bad code - and most fall short of the standards. That's one of the reasons why you have browser "hacks" and why many developers end up with bad habits.

    In other words, don't be so forgiving with bad code. It hurts the world of web development when bad code becomes a de facto "standard."
  • by bullitB ( 447519 ) on Thursday April 28, 2005 @11:30AM (#12372371)
    Now if only it would play a CD without forcing me to enter a contractual relationship with iTunes (which I am not interested in doing) I'd be less disappointed in it.

    You're aware you had to enter into a similar contract to like...boot the Mac? Remember that thing you clicked through right before it asked for your name? You know, with the bouncing blue thing?
  • by James_Duncan8181 ( 588316 ) on Thursday April 28, 2005 @11:33AM (#12372401) Homepage
    Yes. KHML is a fully GPLed engine, and Safari is based on that for all HTML rendering. It would be a breach of licence for Apple not to release any fixes, not to mention entirely out of character with Apple's good co-operation so far.
  • Re:Hmmm (Score:5, Insightful)

    by hrieke ( 126185 ) on Thursday April 28, 2005 @11:34AM (#12372409) Homepage
    Catch-22.
    We have browsers that can't do standard HTML / CSS because no one writes clean HTML / CSS, and we can't have clean HTML / CSS until we have a browser that supports it correctly.

    This is just a small step forward in that fight, and hopefully it will go forward.
  • by Albert Sandberg ( 315235 ) on Thursday April 28, 2005 @11:35AM (#12372432) Homepage
    " So... the test was designed to see if a browser can use some weird code that most web designers would never use, and could (in this case) easily be done with an image tag? I don't see the point."

    The problem is that you might want to use them, but you can't, since only 3/5 major browsers support the option. Also, it's easy to say you are up to the standars, another thing to actually be.

    I'm a user of CSS, but I still have to check all kinds of browsers to see if it does what I want, which is taking time and time is money.

    To just solve this example with including an image would of course be suitable, but how about a whole site? Text is so much more practical, just by being able to copy it. The webpage would eat up much more memory dealing with images too.

    We have the same problem with javascript, only that is 10 times more disturbing because if javascript was actually the same all other the place web surfing could be enhanced so much. The only reason people don't like javascript is because the popups, and that's not everything in javascript.

    Acid2 is a friggin good one, perhaps people will get up their eyes for it and see for themselfs, I just hope the same goes on for javascript and html too...

    Albert "thec" Sandberg

  • Plus he posted the patches to KHTML on his blog, so Konqueror should be passing it too pretty soon.
  • by rainman_bc ( 735332 ) on Thursday April 28, 2005 @11:37AM (#12372463)
    I thought WASP was "White Anglo Saxxon Protestant" or "We Are Sexual Perverts", but where the hell is the "A" in "Web Standards Project"?????

    First they should learn how to spell IMO

    =D
  • by Anonymous Coward on Thursday April 28, 2005 @11:42AM (#12372550)
    RTFA -- the patches are all right there!
  • Re:Go Apple! (Score:4, Insightful)

    by AKAImBatman ( 238306 ) * <akaimbatman@gmaYEATSil.com minus poet> on Thursday April 28, 2005 @11:43AM (#12372576) Homepage Journal
    Go Apple!

    Indeed. I still use OS X 10.2, but the differences in Safari between 10.2 and 10.3 are just astounding. Especially in the areas of CSS and DHTML support. KHTML was always a nice little widget, but Apple seems to have some of the best minds I've ever seen working on this. Not even Microsoft got their act togther this fast! (And they started with Spyglass, a component that was superior to the KHTML one that Apple started with.)
  • by Anonymous Coward on Thursday April 28, 2005 @11:52AM (#12372691)
    what developer would turn those improvements away?

    A stubborn OSS developer.

    Apple contributes quite a bit to OSS projects, but tends to do so in the format most convenient to them, which isn't always the format most convenient to the project's maintainers. This results in some developers refusing to integrate Apple's code in to the main branch of their project (for instance gcc still has no Objective-C support in the trunk).

    This also results in OSS fanatic /.ers who can't be bothered to RTFA instinctually whining about patch availability even on an article that is basically a list of links to small easily applied patches, like this one.
  • by masklinn ( 823351 ) <slashdot.org@mCO ... t minus language> on Thursday April 28, 2005 @11:55AM (#12372734)
    We have the same problem with javascript, only that is 10 times more disturbing because if javascript was actually the same all other the place web surfing could be enhanced so much. The only reason people don't like javascript is because the popups, and that's not everything in javascript.
    I beg to disagree, popups is not the only reason why people hate JS (one could even say that they fear it).

    General misuses and abuses of JS is, and in this general abuses are:
    • Popups, of course
    • Stupid effects (shitty animated gifs following cursors anyone?)
    • Messing with browsers (resizing, changing parts of the global UI, alert boxes)
    • Code design so bad that browsers grind to a halt (oh, i so love seing my CPU usage skyrocket to 100% and stay there because i opened a bugged page)
    • Slowing the browsing
    • Disabling the browsing altogether because of non standard or stupid scripts (mmm, yummy Javascript links, I mean anchor tags are certainly not hip enough for a damn link are they?)
    • Probably many other i can't think of right now
    "Modern" javascript and the usage of DOM scripting allow wonderful flexibility, and applying the priciples of graceful degradation and progressive enhancement [hesketh.com] while fully decoupling Javascript from HTML/CSS (by putting JS in a separate file and associating it via the Event Handlers, layering a behavioural javascript on top of an existing fully functionnal JS-less website) allows improving every JS-enabled's navigation while not degrading at all JS-disabled's navigation.

    As Douglas Crockford put it, Javascript is the most misunderstood programming language [crockford.com], and I'd add that it's the one with the most extensive yet qualitatively (sp, more than likely) worst documentation ever.

    And yet, finding good javascript tutorials [howtocreate.co.uk] and stunning Javascript reference websites [quirksmode.org] is possible. People just don't bother looking for them...
  • by IamTheRealMike ( 537420 ) on Thursday April 28, 2005 @12:01PM (#12372844)
    They can (and do) release the changes as patch dumps which are hard/impossible to merge in without spending lots of time doing so.

    IOW there's a big difference between "not breaking the license" and "working well with outside projects".

    The GCC changes they make are the same. Some aren't rolled back in and whilst the tree is available, documentation on what the patches are and where you can get them are not (and it's a CVS branch so you can't just do a "svn log" and see the individual commits).

  • by Paradox ( 13555 ) on Thursday April 28, 2005 @12:18PM (#12373056) Homepage Journal
    A lot of their changes make no sense to merge. They do lots of things to ahve the compiler fit with their development and library model, which is quite a bit different from how everyone else does things.

    And some Apple patches, especially with regards to Objective-C, have made their way into GCC. Maybe they could be doing more, but they're allready doing more than many corperations of their stature.
  • by parvenu74 ( 310712 ) on Thursday April 28, 2005 @12:34PM (#12373266)
    Saying that a browser should not support full standards because people generally don't write standards compliant code is absurd. Make the browser support the standards and then expose the faulty css/html writers for the hacks they are. Just because someone is too stupid or too lazy to follow the standard is no reason to effectively abandon the standard!
  • by plumby ( 179557 ) on Thursday April 28, 2005 @12:45PM (#12373412)
    Saying that a browser should not support full standards because people generally don't write standards compliant code is absurd.

    Couple of things

    1) I don't think he was saying that they should not, rather that they do not.

    2)Do you think most people care more about their web browser conforming to standards or displaying most web pages properly? Yes, it would be good for browsers to have an option to provide a "full compliance" mode, but if that mode breaks a website, I suspect most people would just turn compliance off, not stop using the site.

  • by IamTheRealMike ( 537420 ) on Thursday April 28, 2005 @01:00PM (#12373613)
    Not really, they talked about what changes had been made but the conclusion [kde.org] is the same as the initial email laid out. Why don't you read the archives for April 2005 - one of the KDE developers asks about the Acid2 patches and explicitly says "I was afraid you had stopped making incremental patches as we haven't seen any for a long time".

    So there is a bit of co-operation there, or was a while ago, but it seems to be more a case of patches appearing when the Safari team feel sorry for the KDE team. Now go look at how Red Hat or SUSE have worked with the open source community to see how it should be done.

  • Yes, but... (Score:4, Insightful)

    by CarpetShark ( 865376 ) on Thursday April 28, 2005 @01:00PM (#12373619)

    Konqueror still put in place all of the stuff necessary to make this happen. According to his blog, the he's only been working on this since April 12, but Konqueror has been in development for years. That's what we call standing on the shoulders of giants.

    Also, I'll be interested to see when Dave/Apple get around to contributing this back to the KDE team.

  • by Paradox ( 13555 ) on Thursday April 28, 2005 @01:02PM (#12373634) Homepage Journal
    So what, "Here's our source tree" is obfuscation? That's a pretty extreme position to take.

    I suspect it's more of a cultural clash. To someone being paid, being told to take the patches from the source tree is a minor irritant at best. For a volunteer, any extra effort streches allready scarce donated time.
  • IT section? (Score:3, Insightful)

    by dzurn ( 62738 ) <daz-slashdot@COF ... m minus caffeine> on Thursday April 28, 2005 @01:03PM (#12373659) Homepage
    So how come this isn't in the /. "Apple" section too?

    Seems kinda relevant, what with kudos and all...
  • Re:Yes, but... (Score:2, Insightful)

    by mekkab ( 133181 ) on Thursday April 28, 2005 @01:12PM (#12373751) Homepage Journal
    Also, I'll be interested to see when Dave/Apple get around to contributing this back to the KDE team.

    So would I, if ever. Thats the beauty of Open Source; someone takes your hard work and leaves you with... ?
  • by mzipay ( 577247 ) on Thursday April 28, 2005 @01:45PM (#12374150)
    make the browser support the standards and then expose the faulty css/html writers

    for what it's worth, i hypothesize that following your prescription would result in the immediate and near-total failure of that browser in the marketplace.

    why? let's use firefox as an example, and assume the firefox team takes gecko to 100% compliance.

    because there are, in fact, "faulty css/html writers," a non-trivial number of sites may now appear (to the casual web surfer) to render incorrectly. but guess what? IE will continue to display those pages in such a fashion that those same casual users will be of the opinion that it is firefox, not IE, that is behaving "incorrectly." and, of course, perception is 9/10 of reality.

    as soon as that happens, firefox can kiss its market share goodbye, because it will have virtually guaranteed IE's victory.

    so i disagree that draconian adherence (all at once) to the standards would be a good thing. the process should be gradual, and should be accompanied by an aggressive "education in standards" campaign.
  • by Anonymous Coward on Thursday April 28, 2005 @02:37PM (#12374847)
    Dude, they're using the open-source model. What they're doing is they're taking the code, scratching their own itch (making modifications to suit what they want to do), and then making those modifications available. Their itch is different from other people's itches? So what? The entire point of open source is that they can still do what they want to as long as if someone else comes along with the same itch they can use the scratcher.
  • Re:Yes, but... (Score:3, Insightful)

    by ahillen ( 45680 ) on Thursday April 28, 2005 @03:30PM (#12375501)
    I don't know. That sounds like he's whining that Apple doesn't merge the code back for them.

    Well, I absolutely don't have any insight in this matter. But to me it seems that he is not so happy that they only get a couple of weeks (or rather months) worth of changes in one big chunck, littered with changes specific to Mac OS X. I can understand that this is a pain in the ass to merge back (if you can do it at all). This has nothing to do with being lazy, especially if your working on kHTML as a hobby. And I can also understand that he would have wished for a more fruitful cooperation (maybe being able to see and apply individual patches?).

    And he is also explicitly stating that Apple has the right to do what they are doing. He is merely pointing out that people will not understand why the changes are not merged into KDE (quickly or at all), and the developers will get the blame. I can understand him...
  • by MasterVidBoi ( 267096 ) on Thursday April 28, 2005 @04:10PM (#12375903)
    I'm not sure Zack Rusin's response is entirely well thought out. Hyatt links directly to the individual patch files for each of the bugs in KHTML. I've scanned through them, and there isn't much OS X specific at all, except in files that are explicitly platform specific.

    Look at http://weblogs.mozillazine.org/hyatt/acid3.txt [mozillazine.org] as an example.

    In one of the other patches, an APPLE_CHANGES ifdef was actually replaced with entirely cross-platform code.

    The KHTML team would understandably like every change in Safari to be packaged up into a nice little independant patch, but it realistically cannot work that way. I'm sure everyone who has tried to contribute to a project maintained by someone else has had to wait before their patch was (or was not) accepted, and Apple really can't wait on the KTML devs. They have a job that needs to get done by a particular deadline (a deadline that doesn't apply to the KHTML devs).

    The patches posted by Hyatt look really well done to me, and not at all representative of what Rusin is accusing them.
  • by Anonymous Coward on Thursday April 28, 2005 @06:00PM (#12377041)
    Sad? How? They're putting open-source code to good use, obeying the license conditions, *and* improving it on their own dime. That's a pretty sweet deal right there. I wish they did that with my programs.

    There's a reason the LGPL set the requirements it did. If the KHTML authors wanted more from Apple, they should have used a different license. You don't hear the BSD guys complaining that Apple does the minimum required by the BSD license, do you? If you pick a certain license for your program, you have no reason to be unhappy when people follow it!

    I use the GPL for most of my projects, and the LGPL for a few others. To find that a big-name company (a) used my code, (b) actively developed it, (c) obeyed the license, and (d) threw improved source code at me from time to time -- that would be a *dream*.

    10 years ago, for Apple to be using GNU-licensed software would have seemed unthinkable. I guess some people just can't *ever* be happy. ("OK, they're using open-source, they're giving it good publicity, they're actively developing it, they're following the license, and they're giving us source code for shipping products -- but they're not giving it in the easiest format for us to use! They suck!" WTF?)
  • by Anonymous Coward on Thursday April 28, 2005 @07:03PM (#12377767)
    Read carefully what Zack's saying. Apple does contribute, but the KDE team wants the contributions incrementally so that they have an easier time rolling it into KDE.

    So let us all bitch at Apple for following the LGPL to the letter, and not following the KDE developer's interpretation of the spirit of LGPL . For whatever (business) reasons, Apple does not provide the changes (in Webcore) to KDE before they can provide it to their clients. By which time it is not "incremental" enough for KDE folks.

    Yes, the KDE folks are not getting the recognition they deserve. Sounds like they are also POed that David is getting all the praise (on /., no less ;^).

    KDE does deserve all the praise for the broad framework etc. As does David for working on the minutiae (In two weeks, he found a bug in the Acid Test and fixed the rendering bug in Safari (Webcore) and released all the source for it.

    Too bad the KDE team, who haven't provided much code/insight in terms of passing the Acid test, want to sulk.

  • by klui ( 457783 ) on Thursday April 28, 2005 @08:03PM (#12378408)
    Looks like the truth is somewhere in the middle (is this a truism?). I haven't even seen KHTML so the following is speculation.

    Zack described Apple using OS X-specific APIs in the KHTML core--which is unfortunate. I also get the feeling that some of Apple's patches does not work well without help from Apple's proprietary libraries. I know I have sometimes rushed something out by making a fix in an area outside a "core" piece so that if I took the core out, it would break in certain situations. Sometimes, it would even prevent "core" from compiling.

    As OSS developers, the KHTML team should be diligent in pursuing their cause with Apple. If they (KHTML developers) do not, the situation will get worse as patches pile on top of patches.
  • by LionMage ( 318500 ) on Friday April 29, 2005 @08:41PM (#12389426) Homepage
    That's why I said I was disappointed. I didn't expect Apple to behave better, but I hoped for it. KHTML is under the LGPL; thus, so is WebCore. It would have been nice if Apple contributed changes back to KHTML in a manner more conducive to the improvement of KHTML; that would have made Apple a better "citizen" in Open Source land. However, Apple is at least complying with the letter of the LGPL if not the spirit. So they're making WebCore source available, as they should.

    At this point, WebCore is more of a fork of KHTML, so the KHTML authors may need to re-engineer a few things that Apple did to the source to improve standards compliance or speed rendering. Apple could have cooperated more closely with the KHTML team, but they chose not to. They could have made their changes to KHTML in a more platform-independent manner, but they chose not to. (And they still could have done it in a way that would leverage OS X's advantages.)

    Apple derived benefit from KHTML, but the KHTML team hasn't gotten a reciprocal amount of benefit from Apple. The code came into their hands in a form that was reasonably platform-neutral, which was useful to Apple. Apple polluted the code with platform-specific stuff in a few spots, so it didn't leave their hands in the same state. So much for the promise of Open Source. Apple's actions hurt them in the long run, because more and more people are starting to believe that Apple's commitment to Open Source is more PR than anything.

    On the other hand, it's a good sign that at least Apple's engineers are willing to discuss the changes they made to the source, which mitigates the problem of how Apple sends the patches/code back to the KHTML team. So Apple's not being quite so uncooperative as they're being made out to be. But they could have done a far sight better. This kind of cynical profiteering from Open Source serves to discourage others from contributing to Open Source projects, for fear that corporate interests will benefit from free code and give nothing substantial back.

Happiness is twin floppies.

Working...