@webreflection/custom-elements-no-builtin

0.3.0 • Public • Published

Custom Elements w/out Builtin for IE11+ and legacy.

Social Media Photo by Joanna Kosinska on Unsplash

A customElements polyfill, without builtin extends, targeting IE11+ and other legacy browsers.

How To Test

Please use features detection to avoid including this polyfill in every browser, considering that this replaces native customElements, if present, so that it would add unnecessary code to parse and execute in every browser that supports Custom Elements builtin natively already.

<script>
if(!self.customElements)
  document.write('<script src="//unpkg.com/@webreflection/custom-elements-no-builtin"><\x2fscript>')
</script>

P.S. the \x2f is not a typo, it's exactly how you should write it or your page layout will break!


To Keep In Mind

This is not a ShadowDOM polyfill, this is just the current Custom Elements V1 as specified by standard bodies without builtin extends.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.09latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.09
0.2.00
0.1.170
0.1.160
0.1.150
0.1.140
0.1.130
0.1.120
0.1.110
0.1.100
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.10
0.0.00

Package Sidebar

Install

npm i @webreflection/custom-elements-no-builtin

Weekly Downloads

9

Version

0.3.0

License

ISC

Unpacked Size

30 kB

Total Files

8

Last publish

Collaborators

  • webreflection