Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
It's the fucking DOM. It sucks.
JavaScript Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
Makefile
README.md
component.json
index.js
package.json

README.md

Element Pants

Element Pants provides functions for working with the DOM in all of the usual ways. Element Pants is not limited to HTML document manipulation, and even handles XML and SVG just fine.

One benefit of Element Pants, depending on your perspective, is that it doesn't bother supporting older browsers. In fact, it hasn't even been tested in older versions of IE, because fuck that shit. We've got a nice pool here - let's not poop in it.

If you call the install function, Element Pants will install itself on Element prototypes so that it extends the DOM Element API, making it easier to use. You may find this offensive... luckily I don't care about your feelings on the matter.

API

hasClass, addClass, removeClass, toggleClass, getStyle, setStyle, hide, show, remove, find, findAll, on, off, create, install

Documentation

Read index.js.

Should I Use This?

Yes.

Installation

Element Pants is available via NPM and Bower, and works great as a CommonJS module, RequireJS module or even a regular old <script> include.

Licence

MIT

Something went wrong with that request. Please try again.