Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

element-pants

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-pants

Some pants for your elements.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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 if available via NPM and Bower, and works great as a CommonJS module, RequireJS module or even a regular old <script> include.

Licence

MIT

FAQs

Package last updated on 11 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc