项目作者: a7ul

项目描述 :
childNode.replaceWith polyfill for unsupported browsers.
高级语言: JavaScript
项目地址: git://github.com/a7ul/child-replace-with-polyfill.git
创建时间: 2019-01-26T13:20:19Z
项目社区:https://github.com/a7ul/child-replace-with-polyfill

开源协议:MIT License

下载


child-replace-with-polyfill

Polyfill for

  1. void ChildNode.replaceWith((Node or DOMString)... nodes);

This the npm module version of polyfill found here: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/replaceWith so that it is easier to integrate to regular projects

Installation

  1. npm install --save child-replace-with-polyfill

Usage

  1. import "child-replace-with-polyfill";

or

  1. require("child-replace-with-polyfill");

Maintainence

I dont think this polyfill would need any more maintainence but feel free to raise a PR if needed