GitHunt
TH

ThariqS/diffhtml

Element.prototype.diffHTML

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/

Languages

JavaScript99.4%HTML0.6%

Contributors

MIT License
Created July 22, 2015
Updated July 22, 2015