Skip to content

FormData polyfill implementing entries and append for use in unit tests

License

Notifications You must be signed in to change notification settings

MatthewBacalakis/Very-Basic-FormData-Polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Very-Basic-FormData-Polyfill

I was creating a unit test and wanted to confirm that file objects were being added to a FormData object. My unit test worked great until I tried it in IE and realized FormData only implements .append there.

In browsers where .entries is not implemented this polyfill simply mocks FormData with .append and .entries. It has no dependencies.

About

FormData polyfill implementing entries and append for use in unit tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published