WebKit gets Native getElementsByClassName
The advantages of a native implementation are clear:
- Clearly specified and consistent behavior
- Blindingly fast
Tests were run three times, then averaged. The page was reloaded between each run. The browser used was Safari 3 with WebKit r28911. The hardware was a 2GHz Apple MacBook with 3GB of RAM running Mac OS X 10.5.1. The XPath and JS/DOM functions are from Prototype 1.5.1.