rafaelp / css_browser_selector

A very small javascript library that allows you to create browser specific CSS to be merged into your normal classes. No more hacks or mischievous code in your CSS code.
http://rafael.adm.br/css_browser_selector/
626 stars 168 forks source link

use document.documentElement for the html elem #1

Closed paulirish closed 14 years ago

paulirish commented 15 years ago

document.documentElement is much faster than getElementsByTagName('html')[0]

We use it in Modernizr and got a decent speed boost. (relatively, of course)

rafaelp commented 14 years ago

Done on version 0.3.5