polyformfill

Polyfill script for HTML5 form elements

Usage no npm install needed!

<script type="module">
  import polyformfill from 'https://cdn.skypack.dev/polyformfill';
</script>

README

Polyformfill Build Status Coverage Status

Polyfill script for HTML5 form elements.

Currently supported:

  • input[type=date]
  • input[type=time]

Install

You can install this package either with npm or with bower.

npm

npm install polyformfill

bower

bower install polyformfill

Usage

Simply add a <script> to your HTML document (position doesn't really matter but at least before scripts that rely on any of the DOM interface polyfills), e.g. if you are using bower:

<script src="/bower_components/polyformfill/polyformfill.js"></script>

Browser compatibility Sauce Test Status

Sauce Test Status