This is a partial polyfill for the Declarative partial updates API.
The polyfill includes a implementation of declarative patching using template elements as described in the Patching explainder.
Other implementations of the Declarative partial updates API are not yet implemented
A browser that supports ES6/ES2015 is required for this polyfill.
Note: not added to npm yet
npm install declarative-partial-updates-polyfill<script type="module" src="./declarative-partial-updates-polyfill/dist/declarative-partial-updates-polyfill.js">Note: not added to npm yet
<script src="https://unpkg.com/declarative-partial-updates-polyfill"></script>git clone https://github.com/GoogleChromeLabs/declarative-partial-updates-polyfill
cd declarative-partial-updates-polyfill
npm i
npm test # Tests should pass
npm run build # Outputs minified polyfill to dist/<script src="/path_to_polyfill/declarative-partial-updates-polyfill.js"></script>We'd love to accept your patches and contributions to this project. See the enclosed CONTRIBUTING.md for details.
This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.