diffDOM
diffDOM copied to clipboard
A diff for DOM elements, as client-side JavaScript code. Gets all modifications, insertions and removals between two DOM fragments.
If you try to diff a node with a string that contains multiple HTML comments, diffDOM throws an exception. I've put together a minimal JSFiddle to reproduce the error here:...
Is it possible to use this library to comapre two HTML strings, merge them and highlight differences in green and red?
Trying to use `diff-dom` in non-test Node.js project with `jsdom`, I noticed the `document` option that allows manually specifying the value, but that option along does not work. The issue...
In my case, I have `{text_1}{text_2}` as jsdom element, only `{text_2}` is updated and the diffs include `{text_2}` as the whole text value while `{text_1}` is completely ignored (`path` doesn't...
Hello, is there a way to hook into a new node creation in the dom when applying a diff? It's so i would be able to register events on the...
I am facing an issue while skipping the difference. My use case is that I want to skip all the changes made to BODY element and I am using preVirtualDiffApply...
I'm getting these warnings in my console from `diff-dom`:  Due to this svg: ```html ``` You can see it on https://moebius.wtf
If the target DOM node contains event handler properties, they are not captured in the diff and therefore not subsequently applied. https://codepen.io/cowboyd/pen/ExrEpwe?editors=1011
It seems the fix from #126 is not enough to properly support iframes. The root problem is that the [realm](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof#instanceof_and_multiple_realms) of the JavaScript interface (e.g. [Text](https://developer.mozilla.org/en-US/docs/Web/API/Text)) of a DOM node...
I am working on a project where I use diffDOM to update the DOM based on state changes. I have encountered a situation where `oldDom` and `newDom` can have completely...