https://github.com/varvet/dominion.js
Simplify and beautify the DOM api
https://github.com/varvet/dominion.js
Last synced: about 2 months ago
JSON representation
Simplify and beautify the DOM api
- Host: GitHub
- URL: https://github.com/varvet/dominion.js
- Owner: varvet
- Created: 2012-07-20T06:52:34.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-26T20:13:34.000Z (over 12 years ago)
- Last Synced: 2024-04-14T05:18:00.207Z (over 1 year ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 6
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dominion.js
Dominion is a light weight library which embraces and extends the DOM.
Here's what it does:
* Adds the global methods `find` and `all` which are shortcuts for
`document.querySelector` and `document.querySelectorAll` respectively.* Extends the Element prototype with useful methods for manipulation and
querying.* Polyfills the `matches` methods on Element for browsers which don't
support it.* Extends the NodeList prototype with all the regular Array methods.
* Adds a global method called `on` for event delegation.
The general idea is: the DOM is not *that* bad, and completely shimming it with
a different API like jQuery does is annoying and superfluous. Extending native
prototypes really isn't as evil as some make it out to be.Supports IE9 and all modern browsers.
License: MIT