* 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
This PR fixes two minor issues in the documentation:
Double negation typo
Original: hx-boost does not not update the <html> or <body> tags...
Fixed: hx-boost does not update the <html> or <body> tags...
Explanation: Removed a duplicated "not".
Grammar and consistency in terminology
Original: The MDN Article provide a good jumping off point...
Fixed: The MDN Article provides a good jumping-off point...
Explanation:
Corrected subject-verb agreement (article → provides).
Added hyphens in "jumping-off point" as a compound adjective.
* 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>
Without this, in dark mode the [hx-indicator](https://htmx.org/attributes/hx-indicator/) demo button has white text on white background. Switching to `Canvas` means the button background will be black in dark mode.
This is a similar fix to #2719, though we can’t use `primary` here as it would make the indicator "bars.svg" image almost invisible.
Add a HTMX CEO's website
It seems like personal sites aren't allowed as per #2186, however it was closed because it was "Not exactly an htmx showcase." so I'm not exactly sure if it's that personal sites aren't allowed, or it's that the site didn't showcase HTMX.
I'd argue my site is webring-worthy because it relies nearly completely on HTMX and hyperscript, shows that HTMX and hyperscript can create very [fast](https://pagespeed.web.dev/analysis/https-thomasricci-dev/6tey5ptzsx?form_factor=desktop) websites, and has had (some) popularity w/ [HTMX on twitter](https://twitter.com/RudRecciah/status/1749007532734235134).
I'd love for it to be added, but if that's not an option that's okay.
Co-authored-by: 1cg <469183+1cg@users.noreply.github.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>