JSPM

  • Created
  • Published
  • Downloads 390
  • Score
    100M100P100Q95502F
  • License MIT

Package Exports

  • diffhtml
  • diffhtml/lib

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diffhtml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Element.prototype.diffHTML

Build Status

Allows you to easily swap out markup and have an intelligent virtual diff patch in the changes. Contrast to innerHTML that blows everything away when set.

document.querySelector('main').diffHTML = '<new markup to diff/>';

More information and a demo are available on http://www.diffhtml.org/