Let op: Tweakers stopt per 2023 met Tweakblogs. In dit artikel leggen we uit waarom we hiervoor hebben gekozen.

IE8: Operation (now silently) Aborted

By crisp on vrijdag 25 april 2008 00:06 - Comments (8)
Categories: Browsers, Javascript, Views: 17.440

The MSIE team proudly blogged about the 'fix' they made in IE8 for the dreaded "operation aborted" error that has plagued and confused many front-end developers (and end-users) the past decade or so.

Read more »

Some thoughts on HTML5's getElementsByClassName

By crisp on maandag 11 februari 2008 23:24 - Comments (8)
Category: Javascript, Views: 17.984

HTML5 will bring us some really cool things, not only in terms of new markup features but also in terms of extended features for forms and a very handy DOM extension in the form of a native (and thus lightning fast) getElementsByClassName method.

Read more »

Crossbrowser Array Generics

By crisp on maandag 20 augustus 2007 00:06 - Comments (2)
Category: Javascript, Views: 9.292

I briefly demonstrated how one can use an array method on non-array objects such as nodeLists or the arguments variable in my previous entry on getElementsByClassName (and Menno van Slooten did me a favour by explaining it on his blog). I also used the Array generic Array.filter there and left those with a promise to explain how these techniques can be implemented crossbrowser.

Read more »

getElementsByClassName re-re-re-visited

By crisp on maandag 13 augustus 2007 09:07 - Comments (3)
Category: Javascript, Views: 17.255

There have been numerous attempts at creating the most optimal getElementsByClassName implementation. I also took a shot at it back in 2005 and back then Opera had some performance problems with getElementsByTagName, IE's implementation of nodeList.item() proved to be a major hog and Firefox' XPath implementation was far from perfect. Eventually I came up with a hybrid solution that combined the fastest approaches for each tested browser (with IE being declared the winner on performance).

Read more »

prototype: IE and the cost of Element.extend()

By crisp on donderdag 9 augustus 2007 00:35 - Comments are closed
Categories: Browsers, Javascript, Views: 11.282

It seems that prototype like YUI is more and more moving towards code purity and are neglecting performance. I noticed this recently when I was benchmarking my own getElementsByClassName function and comparing it to the established javascript libraries that also support this functionality.

Read more »