* Handle not preventing link when inside htmx enabled element
* Simplify shouldCancel and pass in eltToListenOn to solve from: issue without regressions
* move regex to local variable format
* docs: add module import instructions for idiomorph extension
Fixes#3349🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* use the right import path
* Restore example to make it consistent in the examples
* fix manual bundle instructions too
* remove unnecessary script tag
* remove unminified version as well since it's not needed for htmx integration
* clear instruction on using min version with htmx
---------
Co-authored-by: Claude <noreply@anthropic.com>
* Added regression test for swap=outerHTML unexpected behavior, checked it failes, implemented initial fix in htmx.js that makes (all) test(s) run and pass.
* Renamed variable in my regression test to be more clear.
* I noticed I wasn't using the copies of the attributes I introduced.Tests were passing and I know why, though. This means I miss one more regression test for the bug in cloneAttributes.
* Added one more regression test for the fix in cloneAttributes.
* Made preservation of htmx- prefixed classes more robust in cloneAttributes after I noted they could as well be removed by mergeTo.setAttribute in the second forEach loop.
* Started as a typo-fix, ended up renaming regression tests to be more explicit.
* Started as a typo-fix, ended up renaming regression tests to be more explicit.
* Removed space that I accidentally added before.
* Applied changes as requested by MichaelWest22.
---------
Co-authored-by: Matteo Smaila <matteo.smaila@314softwaresolutions.com>
Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
* Move History storage to sessionStorage and history path to window
* Fix type warnings
* Revert currentPathForHistory to move it to its own PR
* fix test
* Improve history support and events
* Improve history event overrides
* Improve history support and events
* Improve history event overrides
* Update Documentation of new event changes
* Add event testing for updated events
* update event doco and rename to historyElt to be consistent
* Improve history support and events
* Improve history event overrides
* Update Documentation of new event changes
* Add event testing for updated events
* update event doco and rename to historyElt to be consistent
* Fix loc coverage test coverage
* Standardize history restore functions to use proper htmx swap functions
* Add test for hx-history-elt attribute
* Fix broken merge conflict resolution
* Follow up to #3234
Add missing part of migration from UNPKG to jsDelivr
* Restore UNPKG support in package.json
---------
Co-authored-by: scrhartley <scrhartley@github.com>
* move delay and view transitions to inside swap function
* Fix indenting and add tests
* move delay and view transitions to inside swap function
* Fix indenting and add tests
* revert rollback of feat: handle 'unset'for HX-Reselect in swap function
* adding javalin-htmx examples to server integration examples
Adding two examples of using htmx with the javalin server library
* Update www/content/server-examples.md
Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
---------
Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>