├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── cjs ├── index.js └── package.json ├── es.js ├── esm └── index.js ├── index.d.tx ├── index.js ├── min.js ├── package.json ├── rollup ├── babel.config.js └── es.config.js └── test ├── dual.html ├── ie └── index.html ├── index.html ├── index.js ├── package.json └── perf.html /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | coverage/ 4 | package-lock.json 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | coverage/* 2 | node_modules/* 3 | test/* 4 | _config.yml 5 | .DS_Store 6 | .gitignore 7 | .travis.yml 8 | package-lock.json 9 | rollup.config.js 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2018-2020, Andrea Giammarchi, @WebReflection 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # regularElements 2 | 3 | - - - 4 | 5 | **V1 Breaking Changes** 6 | 7 | * the definition now follows standard naming convention 8 | * callbacks are callbacks, not even driven anymore 9 | * if present, `observedAttributes` must contain at least one attribute name 10 | * browsers older than IE 11 might not work as expected 11 | * the minified gzipped size is now *~0.9K* 12 | 13 | - - - 14 | 15 | Everything I love about Custom Elements made available for any node, and through CSS selectors. 16 | 17 | No Custom Elements, no Shadow DOM, and no polyfills are needed. 18 | 19 | ```js 20 | // if loaded as 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /test/ie/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Regular Elements 7 | 8 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | regular-elements 7 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- 1 | require('../cjs'); -------------------------------------------------------------------------------- /test/package.json: -------------------------------------------------------------------------------- 1 | {"type":"commonjs"} -------------------------------------------------------------------------------- /test/perf.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 45 | 46 | 47 |
48 | 49 | 50 | --------------------------------------------------------------------------------