1.1.0 • Published 4 years ago

custom-elements-native-shim v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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");