idiomorph
idiomorph copied to clipboard
A DOM-merging algorithm
Some javascript frameworks like angular can overwrite the tag's id getter, and comparison can turn into a false negative. Newly added elements don't have the framework's code initialised yet, and...
### The Problem I'm using angular frontend components that are being sent to the frontend via turbo.js, morphed with Idiomorph. The result of the morphing will insert duplicate elements in...
## Overview I think Idiomorph could benefit from a plugin system. The idea here to is make it easy to encapsulate useful ideas and integrations in individual files or packages,...
Now that Node.js supports ESM, can we remove the CommonJS distribution target and only release for ESM and ?
It seems to me that the dependency arrow is backwards on this one. Idiomorph is composed by HTMX, not vice-versa. Or, put another way, HTMX knows about Idiomorph, not vice-versa....
Paired with https://github.com/bigskysoftware/htmx-extensions/pull/146 Closes #111 Any reason not to do this?
Right now, the `newContent` argument passed to the main morph function can be a dizzying array of types: * Element * Node * HTMLCollection * Array\ * string * null...
I've added back the original idiomorph id set matching code. This code counts up the number of id's in the current new node and then as it scans though the...
Here is a possible new feature we can add. We already have support to ignore the value of the active element. This existing feature allow you to morph say a...
https://codepen.io/MichaelWest22/pen/yyBwPww https://codepen.io/MichaelWest22/pen/XJrGzxv In the old idiomorph there is extra bestMatch code that handles outerHTML swaps. It handles the situation where you are replacing a single node with possibly multiple nodes...