3448 Commits

Author SHA1 Message Date
Carson Gross
2d0c0f1b56 add essay to "On The Other Hand..." 2025-09-23 07:21:39 -06:00
Carson Gross
81a6e25fb9 update htmx sha 2025-09-09 15:34:48 -06:00
Carson Gross
2b83121f27 update package lock v2.0.7 2025-09-08 11:23:43 -06:00
Carson Gross
3b85139c61 changelog 2025-09-08 10:30:07 -06:00
Carson Gross
96d361d440 Merge branch 'master' into dev 2025-09-07 12:15:00 -06:00
Carson Gross
ccdce87ec3 Merge branch 'master' into dev
# Conflicts:
#	www/content/docs.md
2025-09-07 12:14:25 -06:00
Carson Gross
449c8e9531 prep next release 2025-09-07 12:13:49 -06:00
MichaelWest22
cee310e4d5
Handle not preventing link when inside htmx enabled element (#3396)
* 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
2025-09-07 12:09:05 -06:00
letianpailove
d5de7d4a03
Fix minor typos and grammar in documentation (#3400)
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.
2025-09-02 17:52:57 -06:00
Yami Odymel
458ae04d17
Update hx-swap-oob.md typo: excapsulate -> encapsulate, Fixed #3406 (#3407) 2025-09-02 17:52:29 -06:00
Carson Gross
e4f8fe9a77 Merge remote-tracking branch 'origin/master' 2025-08-02 08:24:21 -06:00
Carson Gross
d7507ddf2c add trackity logo 2025-08-02 07:48:41 -06:00
MichaelWest22
448db781ef
add back null check for no form in getRelatedFormData (#3394) 2025-07-27 09:34:50 -06:00
Yawar Amin
d818268c4c
Update CSRF recommendation (#3383)
Adjust CSRF recommendation
2025-07-21 22:43:36 -04:00
Alexander Petros
2289e3176e
Add note about the loading mechanism to quirks page (#3387) 2025-07-21 22:42:49 -04:00
MichaelWest22
081adf8eeb
Fix ajax api body test (#3073)
fix api body test to not replace body and just check target
2025-07-21 21:42:30 -04:00
Adrian Hesketh
7ae66f9b33
docs(essays): add templ to list of template languages that support fragments (#3382)
docs: add templ to template languages that support fragments
2025-07-20 15:16:32 -04:00
gastendonk
29363deb1a
Update click-to-edit.md (#3172) 2025-07-18 11:32:48 -06:00
Baraa Al-Masri
7619551349
Add DankMuzikk and DankLyrics to webring. (#3378)
Add DankMuzikk and DankLyrics to webring
2025-07-18 11:31:45 -06:00
Baraa Al-Masri
90f94753ec
Add DankTodo to webring. (#3375) 2025-07-17 14:37:13 -05:00
MichaelWest22
9d598f8d6e
implement reportValidity for reporting proper form validation errors behind config flag (#3372)
* implement reportvalidity behind feature flag

* add tests
2025-07-14 19:04:17 -06:00
Carson Gross
dc804932a7 fix formatting 2025-07-14 18:21:16 -06:00
Vincent
03c3af724c
Fix google search syntax from search bar (#3209)
Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
2025-07-14 18:18:39 -06:00
Jackie Li
93cafa50f8
docs: add module import instructions for idiomorph extension (#3350)
* 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>
2025-07-14 18:17:16 -06:00
Thibaud Colas
ec886c81c1
Fix invisible button text for hx-indicator in dark mode (#3353)
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.
2025-07-14 18:16:37 -06:00
Simon Hartley
9c5a646395
Remove redundant script tags (#3358)
* Remove redundant script tags

* Remove redundant script tags

---------

Co-authored-by: scrhartley <scrhartley@github.com>
2025-07-14 18:14:36 -06:00
Dave Lewis
85e499d174
Update Rust server examples with actix-htmx (#3359)
Update Rust server examples

Add link to actix-htmx
2025-07-14 18:13:52 -06:00
Marius Gundersen
bb4d877330
Added extension (#3364)
Added link to htmx-json extension

https://github.com/mariusGundersen/htmx-json
2025-07-14 18:13:39 -06:00
flamendless
91f4472548
Fix typo (#3371) 2025-07-14 18:13:12 -06:00
Thomas Ricci
9a686ea2de
Add Thomas Ricci's website to webring (#2231)
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>
2025-07-14 18:12:10 -06:00
MichaelWest22
28fae544c2
Cancel button with inner content form submit properly (#3368)
Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
2025-07-14 17:41:26 -06:00
MichaelWest22
032972be35
update indicator style to have visibility:hidden for screen readers (#3361)
* update indicator style to have visibility:hidden for screen readers

* spelling
2025-07-14 17:40:09 -06:00
Viktor Szépe
9fb3c0e492
Fix variable names (#3344)
* Fix variable names

* Fix one more variable name
2025-07-14 17:38:39 -06:00
Matteo Smaila
b0c87bf363
Bugfix: swap="outerHTML" on <div> with style attribute leaves htmx-swapping class behind (#3341)
* 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>
2025-07-14 17:37:40 -06:00
Daniel J. Summers
d91c8820f9
Remove extra "2" from unminified v2.0.6 SRI hash (#3362) 2025-07-03 12:58:44 +12:00
Carson Gross
7529444e86 fix shas v2.0.6 2025-06-27 07:46:10 -06:00
Carson Gross
a440c6d4f4 Merge branch 'master' into dev 2025-06-27 07:43:31 -06:00
Carson Gross
1b3e78c331 fix package-lock.json 2025-06-27 07:41:58 -06:00
Carson Gross
599d152c48 prep 2.0.6 release 2025-06-27 07:40:21 -06:00
Carson Gross
fe7f103eab prep 2.0.6 release 2025-06-27 07:39:35 -06:00
MichaelWest22
8e489ef6ee
fix click events on elements wrapped by link don't cancel link navigation (#3357)
fix click events on elements wrapped by link doesn't cancel link navigation
2025-06-27 07:33:28 -06:00
Carson Gross
17a7dd1fc4 Merge remote-tracking branch 'origin/master' 2025-06-25 15:15:58 -06:00
Carson Gross
17f417c923 remove 2.0 announcement 2025-06-25 15:15:48 -06:00
surfskidude
5df061fb65
Adding Lua Server Pages server example (#3347) 2025-06-25 10:17:24 -06:00
Carson Gross
c838cfb7a6 update docs 2025-06-20 15:46:42 -06:00
Carson Gross
726292af1d fix SHAs v2.0.5 2025-06-20 15:31:36 -06:00
Carson Gross
683c0e8ae2 prep 2.0.5 release 2025-06-20 15:29:01 -06:00
Carson Gross
4f95de2e58 prep 2.0.5 release 2025-06-20 15:21:29 -06:00
Simon Hartley
e2353e26bc
Allow use of "this" when evaluating hx-vals (#3332)
Evaluate hx-vals with "this" referring to the element it is defined on

Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-20 14:52:17 -06:00
MichaelWest22
dc71b317d0
throw targetError correctly when target invalid during retarget (#3335)
* throw targetError correctly when target invalid during retarget

* fix missing jsdoc return
2025-06-20 14:51:12 -06:00