Monday, December 24th, 2007
>getElementsByClassName has always been a pain in the arse for us developers. Why it wasn’t implemented natively across the board is something that browser folk can chat about. Not having it available has caused hacks, workarounds, and bugs.
The advantages of a native implementation are clear:
- Clearly specified and consistent behavior
- Blindingly fast