idiomorph
idiomorph copied to clipboard
A DOM-merging algorithm
The issue with `hx-swap` properties not being available in `hx-swap-oob` (https://github.com/bigskysoftware/htmx/issues/2308) also affects idiomorph. Specifically, the following syntax cannot be used: ```html hx-swap-oob='morph:' ``` Use case: I was just trying...
I’m getting the following error when using idiomorph with htmx-ws: ``` htmx-1.js:1899 TypeError: Cannot read properties of undefined (reading 'swapStyle') at Object.isInlineSwap (htmx-idiomorph-0.3.js:863:27) at isInlineSwap (htmx-1.js:695:35) at htmx-1.js:733:30 at forEach...
Thanks for adding `idiomorph.esm.js` to the repository! However when using with htmx the `idiomorph-ext.js` version isn't able to be imported and make `Idiomorph` accessible in the script. The workarounds in...
The htmx init code here relies on a `htmx` global: https://github.com/bigskysoftware/idiomorph/blob/8e40c42cc573609eb6863e72fa3403574974dd7d/src/idiomorph-htmx.js#L12 While reliance on globals is probably okay with `` usage, in a scenario with a bundler it is not...
Without this change, after the morph, attributes (open, value, ...etc) are lost.
I stumbled onto this while I was building an HTML change auditing interface. If I have a node containing multiple children… ``` html Foo Bar ``` … and a target...
Added types to every function and config object, to the best of my ability. One thing that surfaced from this process is that in some places functions expect arguments as...
Since it is possible(-ish) to work around this feel free to close this issue, but imho the current behaviour around input values is wrong/confusing. Consider the following structure: ```html ```...
I have a standard listing of audio recordings with different filters on the left which are grouped in overflowing containers; say something like this: ```html author 1 author 2 etc......
How preserve attribute values missed from new content? For example: ```js let details1 = make('Details1Something') let details2 = make('Details2Something') Idiomorph.morph(details1, details2); should.equal(null, details2.getAttribute("open")); details1.getAttribute("open").should.equal(""); ``` I want that ```details1``` have...