Displaying 1 to 8 from 8 results

classList.js - Cross-browser element.classList

  •    Javascript

classList.js is a cross-browser JavaScript shim that fully implements element.classList. Refer to the MDN page on element.classList for more information.This works in every browser except IE 7 or earlier.

dom4 - Modern DOM functionalities for every browser

  •    Javascript

Many thanks to cdnjs for hosting this script. Following an example on how to include it. Both query and queryAll have been removed, while CSS :scope selector has been added.

classcat - Declarative string builder for DOM className properties

  •    Javascript

Classcat is a declarative string builder for DOM className properties. Each class can be conditionally added and removed depending on the falsiness of the value it is paired with. Here is a button you can toggle on and off. Go ahead and try it online.

dom-helpers - tiny, extremely modular, DOM helper library for IE8+

  •    Javascript

Mostly just naive wrappers around common DOM API inconsistencies, Cross browser work is minimal and mostly taken from jQuery. This library doesn't do a lot to normalize behavior across browsers, it mostly seeks to provide a common interface, and eliminate the need to write the same damn if (ie8) statements in every project. over and over again, or you need a ok getComputedStyle polyfill but don't want to include all of jQuery, use this.




domtokenlist - A super duper strict shim/polyfill for DOMTokenList, classList and relList.

  •    Javascript

A super strict shim/polyfill for DOMTokenList, classList and relList. Small, < 1 kB minified and gzipped (~ 2kB minified). All you need to do is include the JavaScript file and everything will be ready to go. If native DOMTokenList support is detected, nothing will be done.

classes - Cross-browser element class manipulation

  •    Javascript

Cross-browser element class manipulation, utilizing the native .classList when possible. This is not designed to be a .classList polyfill. Add class.

dom-shims - Complete and well-tested shims / polyfills for various DOM API's missing in not-so-modern browsers

  •    Javascript

Complete and well-tested shims / polyfills for various DOM API's missing in not-so-modern browsers. Ensures all browsers have classList support for SVG elements, multiple-argument support for add and remove, force-argument support for toggle, and correct length and item values even when the class value is mutated by means other than classList.

Fix-IE - Ironically-named bundle of polyfills for Internet Explorer 8-9.

  •    Javascript

Ironically-named bundle of polyfills for Internet Explorer 8-9. This works because it's returning an HTML element, detached from the document tree. The original constructor function is fired within the context of the detached HTML node, causing all references to this to point to a shadow element. All properties/methods of the function's prototype are assigned to the HTML instance too.