idiomorph icon indicating copy to clipboard operation
idiomorph copied to clipboard

A DOM-merging algorithm

Results 30 idiomorph issues
Sort by recently updated
recently updated
newest added

Hey @1cg, when I use a hidden inner element to auto-refresh a component, I get infinitely nested elements. It seems like either the target is ignored or the modifier. Any...

I'm using this successfully for an improved experience with various input fields in forms (via htmx). Part of my replace target though includes large number of elements, which I know...

Closes [#15][] When morphing `` elements, treat the [DocumentFragment][] instances returned from the [HTMLTemplateElement.content][] properties as `morphChildren` methods' `newParent` and `oldParent` variables. That way, descendant nodes can be iterated across...

I'm trying to merge two nodes that contain a `` and after the merge the template contains the contents from the old node. Does it make sense to just replace...

Follow-up to [#34][] As mentioned in a [comment on #34][], the test suite wasn't executed when the code was initially contributed. When opening `test/index.html` locally in a browser, there is...

The contents of this diff were generated by executing the following: ``` npm run dist/ ```

The contents of this commit were generated by executing the following: ``` npm install ```

I took a stab at addressing the issue user @adicco mentions in issue #26, preserving scroll position in overflowing containers.

Typescript support for idiomorph

I am running into an exception. Not sure what the root cause is. Here's the stack trace and a screenshot of where it crashes. Let me know what else you...