Acid 3 Ships; WebKit praised
Date : 2008 03 04 Category : Tech & DevelopmentJon Tan ran a few tests and posted the results. Hixie commented on his blog about the release, and praised WebKit on how they have been closing a large number of bugs:
I have to say straight up that I've been really impressed with the WebKit team. Even before the test was finished, they were actively following up every single bug the test showed. Safari 3 (the last released version) scores 39/100 with bad rendering errors. At the start of last month their nightly builds were scoring about 60/100 with serious rendering errors. Now barely a month later the nightly builds are already up to 87/100 and most of the rendering errors are fixed. That's a serious testament to their commitment to standards.
So, the results that we know of are:
Firefox 2.0.0.12: 50% Firefox 3.0b3: 61% Opera 9.26: 46% Safari 3.0.4: 39% WebKit Nightly: 87%The real key though... IE 8? :)
Oh, and take some time to view source on the test itself and enjoy some of the fun JavaScript:
PLAIN TEXT JAVASCRIPT:function () {
// test 11: Ranges and Comments
var msg;
var doc = getTestDocument();
var c1 = doc.createComment("11111");
doc.appendChild(c1);
var r = doc.createRange();
r.selectNode(c1);
msg = 'wrong exception raised';
try {
r.surroundContents(doc.createElement('a'));
msg = 'no exception raised';
} catch (e) {
if ('code' in e)
msg += '; code = ' + e.code;
if (e.code == 3)
msg = '';
}
assert(msg == '', "when inserting <a> into Document with another child: " + msg);
var c2 = doc.createComment("22222");
doc.body.appendChild(c2);
var c3 = doc.createComment("33333");
doc.body.appendChild(c3);
r.setStart(c2, 2);
r.setEnd(c3, 3);
var msg = 'wrong exception raised';
try {
r.surroundContents(doc.createElement('a'));
msg = 'no exception raised';
} catch (e) {
if ('code' in e)
msg += '; code = ' + e.code;
if (e.code == 1)
msg = '';
}
assert(msg == '', "when trying to surround two halves of comment: " + msg);
assertEquals(r.toString(), "", "comments returned text");
return 1;
}