Custom Elements made available for any node, and through CSS selectors
npm install regular-elements- - -
V1 Breaking Changes
* the definition now follows standard naming convention
* callbacks are callbacks, not even driven anymore
* if present, observedAttributes must contain at least one attribute name
* browsers older than IE 11 might not work as expected
the minified gzipped size is now ~0.9K*
- - -
Everything I love about Custom Elements made available for any node, and through CSS selectors.
No Custom Elements, no Shadow DOM, and no polyfills are needed.
``js
// if loaded as