Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider switching to Idiomorph #14

Open
hirasso opened this issue Dec 27, 2022 · 3 comments
Open

Consider switching to Idiomorph #14

hirasso opened this issue Dec 27, 2022 · 3 comments

Comments

@hirasso
Copy link
Contributor

hirasso commented Dec 27, 2022

Morphdom has a few known limitations if it comes to id-less parent elements. That's why the creator of HTMX has developed an alternative library called Idiomorph. The improvements are being presented quite nicely in the library's readme.

Maybe it would be worth a thought for morph plugin to consider switching to Idiodom?

@daun
Copy link
Owner

daun commented Dec 27, 2022

Thanks for calling my attention to idiomorph, it certainly looks interesting. I'll need to check it out and see about backward compatibility. The options and callbacks look like they follow their own naming conventions, unfortunately.

This might be a good fit for the head plugin as well? Not sure if it understands the order of style tags, but probably worth giving it a go.

@hirasso hirasso changed the title Consider switching to idiodom Consider switching to idiomorph Dec 27, 2022
@hirasso hirasso changed the title Consider switching to idiomorph Consider switching to Idiomorph Dec 27, 2022
@hirasso
Copy link
Contributor Author

hirasso commented Dec 27, 2022

I haven't used head plugin yet, so I can't tell if Idiomorph would be a good fit for that plugin as well. But I think it's good to be aware that it exists and especially of the limitations of Morphdom

@daun
Copy link
Owner

daun commented Sep 7, 2023

Note to self: idiomorph still looks very interesting but currently has two major flaws: it doesn't support returning false from callbacks to prevent replacing or removing nodes, and it's distributed as AMD only. There's PRs for both of these in the pipeline, but nothing released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants