A super duper tiny DOM manipulation library that adds some syntactic sugar to doing these things with vanilla JavaScript. Mostly build so I could learn the pattern, but probably usable in production.
Heavily inspired (and in places, borrowed from) Chibi.
liten uses modern JavaScript, but can support older browsers as well. It has been tested in the following browsers but is likely to support more:
- IE8+ (see below for notes)
- Firefox 3.5+
- Chrome
- Safari
- Opera 10.0+
- iOS Safari
- Opera Mini
- Android Browser
- Blackberry Browser
- Opera Mobile
- Chrome for Android
- Firefox for Android
- IE Mobile
There are two files provided: eq.min.js
, eq.polyfilled.min.js
, and polyfills.min.js
. eq.polyfilled.min.js
includes the polyfills needed to run liten in older browsers that are missing some newer JavaScript niceties (yes, this includes IE8+) and polyfills.js
just includes the polyfills. While these allow for a drop-in solutions using just what's provided here, a better solution (and where a bunch of the polyfills come from), consider using something like a polyfill service for a more robust and well-rounded solution.
The specific polyfills included are as follows: