custom-elements-native-shim
v1.1.0
Published
A function to shim any built-in element written in, or compiled to, ES5.
Downloads
9
Readme
custom-elements-native-shim
A function to shim any built-in element written in, or compiled to, ES5.
This shim allows elements written in, or compiled to, ES5 to work on native implementations of Custom Elements v1. It sets new.target to the value of this.constructor so that the native element constructor can access the current under-construction element's definition.
install
> npm install custom-elements-native-shim
use
import shim from "custom-elements-native-shim";
shim("HTMLLIElement");