A polyfill library for phi.
- A fallback for Object.create(): MDN Object.create()
- A fallback for classList: a way of adding, toggling and removing class or classes from a DOM element.
- A fallback for hasClass, the jQuery method for testing the existance of a class.
- A fallback for accessing data attributes from a DOM element.
- A fallback for handling stopPropogation and preventDefault. Josh has already done some work in this area; see his overlay.js.
- A more jQuery way of selecting elements. Just wrapping the native getElementById, getElementsByTagName and querySelectorAll. Just test for the existance of a hash, a dot and just alphanumeric to know which to use.
- A fallback for event listeners: .click()
- A fallback for event delegation (think jQuery's .on() method).
- Uncovering the Native DOM API
- Creating jQuery-style functions in JavaScript, hasClass, addClass, removeClass, toggleClass
- jQuery itself will be a great resource, you could really just cherry pick their code right out of their library to save a ton of time.
- Out-Growing jQuery