95 Commits

Author SHA1 Message Date
MichaelWest22
1a14d3d9ea
handle duplicates in action query params and form data (#3543)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-22 11:01:12 -07:00
MichaelWest22
d569ce6ccf
move to registerExtension to avoid extension upgrade confusion (#3546)
* move to registerExtension to avoid extension upgrade confusion

* Also fix window.htmx export to make modules work with extensions and add initial types file

* update docs on module use

---------

Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-22 10:58:38 -07:00
Carson Gross
0e1cdad9f1 merge streaming changes 2025-11-19 11:18:25 -07:00
Carson Gross
0794ae8572 Merge in headers from https://github.com/bigskysoftware/htmx/pull/3533 (leave HX-Request-Type out for now until we discuss) 2025-11-18 10:42:49 -07:00
MichaelWest22
aaff01750e
Implement hx-custom template tag support (#3537)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-18 07:19:03 -07:00
MichaelWest22
75b2a57d1f
handle inputs for web components that are form associated (#3523)
* use new formData(form) to capture web component inputs as well

* Handle duplicate name inputs better

* Add Tests

* restore comments

* restore default check

---------

Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-18 07:17:32 -07:00
MichaelWest22
0d72f8b2e2
add hx-confirm htmx:confirm event with async issueRequest (#3532)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-18 07:16:03 -07:00
MichaelWest22
44599fb4de
generalize hx-status and fix ajax issues (#3528)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-16 07:36:02 -07:00
Carson Gross
d94fd73fe0 Docs error for hx-status
fixes   https://github.com/bigskysoftware/htmx/issues/3520
2025-11-15 10:46:40 -07:00
Carson Gross
73dda15f0c support js: prefix in hx-vals
fixes  https://github.com/bigskysoftware/htmx/issues/3521
2025-11-15 10:35:38 -07:00
MichaelWest22
a9ba0a1c35
move tokenizer to parseConfig for all the things (#3516)
* move tokenizer to parseConfig for all the things

* move sse mode logic

* upgrade all JSON.parse!

---------

Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-12 04:55:02 -07:00
Carson Gross
4e8b5b53a0 support autofocus 2025-11-10 12:07:34 -07:00
Christian Tanul
006a87441f
Fix title not decoded on boost ("&lt;/&gt; htmx" instead of "</> htmx") (#3507)
* fix page title HTML entities being escaped with hx-boost

* add test for decoding HTML in title

* simplify title HTML entity decoding, update website htmx.js

* simplify further & update htmx.js in www/
2025-11-11 02:46:33 +13:00
MichaelWest22
5568bc2d73
fix bug in hx-config setting wrong level for + merge (#3508)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-11 02:07:27 +13:00
Carson Gross
00ab434e75 clean up boost logic to not boost non-same-origin links & forms 2025-11-09 17:21:51 -07:00
MichaelWest22
dd10454f20
optimize oob and fix partial tests (#3500)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-10 10:11:21 +13:00
Carson Gross
503313c42b add etag support 2025-11-08 19:54:13 -07:00
Carson Gross
f2bcf9d3ce etag support 2025-11-08 08:03:05 -07:00
MichaelWest22
46c978c912
Attribute value only return string again (#3493)
* move attributeValue back to return string and optinally return source only for this target

* remove fetchOverride

---------

Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-06 19:35:20 -07:00
Carson Gross
e339abdcd2 move extension tests out to their own directory 2025-11-06 12:38:22 -07:00
Carson Gross
55f1c17dc0 abort any outstanding requests after tests, make the trigger tests properly await the requests they create to avoid cross-test contamination. :/ 2025-11-06 12:34:53 -07:00
Carson Gross
08a6820d63 clean up html creation 2025-11-06 11:59:03 -07:00
Carson Gross
e10768991d test cleanup 2025-11-06 11:53:18 -07:00
Carson Gross
0b48282a0f test cleanup 2025-11-06 11:52:14 -07:00
Carson Gross
3858a82242 test reorg and docs 2025-11-06 11:30:55 -07:00
Carson Gross
30ff306c31 support the ability to configure the "meta" character for systems like fastHTML that can't use the colon character 2025-11-06 11:13:19 -07:00
Carson Gross
83da589d33 update __attributeValue to return both the attribute value and the source 2025-11-06 10:32:10 -07:00
MichaelWest22
994decb6fa
fix select and strip and title handling (#3492)
Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
2025-11-06 23:47:53 +13:00
Carson Gross
434808e8bb skip test failing in FF 2025-11-03 10:28:34 -07:00
Carson Gross
c5f6e67fb0 final tests fixes for alpha-1 2025-11-03 10:10:44 -07:00
MichaelWest22
b8c2db7633 also run shouldCancel for event filters 2025-11-04 03:11:31 +13:00
MichaelWest22
a69c20f783 Remove settle delay, add initial non transition swap delay option. 2025-11-04 02:09:59 +13:00
MichaelWest22
a9b5ebd3c0 fix shouldCancel test with virtual click event 2025-11-04 01:22:37 +13:00
MichaelWest22
f09899bbe0 improve script handling and custom swap styles 2025-11-04 01:14:46 +13:00
Carson Gross
66024ee1ea change __htmx prefix to _htmx so it doesn't get privatized 2025-11-02 22:56:58 -07:00
Carson Gross
3525a8cfd6 demo-based fixes + tests 2025-11-02 21:08:06 -07:00
Carson Gross
d64e43a76a make relative selectors resolve relative to the current element in hx-on 2025-11-02 19:29:34 -07:00
Carson Gross
488fed10b3 save some bytes 2025-11-02 18:59:44 -07:00
Carson Gross
835593025c fix tests 2025-11-02 17:02:44 -07:00
Carson Gross
081c4420f3 Merge remote-tracking branch 'origin/four' into four 2025-11-02 16:24:28 -07:00
Carson Gross
b74cdbd00b more unit tests, code coverage at 96.5% 2025-11-02 16:15:56 -07:00
Carson Gross
307a51be9b test extract headers 2025-11-02 16:03:49 -07:00
MichaelWest22
10edc67d51 Merge branch 'four' of https://github.com/bigskysoftware/htmx-temp-private into four 2025-11-03 11:54:19 +13:00
MichaelWest22
24eec024ec rename preload cache test 2025-11-03 11:54:11 +13:00
Carson Gross
96fb6b8525 disable & indicator unit tests 2025-11-02 15:47:28 -07:00
Carson Gross
d241e3052f request queue tests 2025-11-02 14:51:53 -07:00
Carson Gross
c483c83667 __handleStatusCodes unit test 2025-11-02 14:39:09 -07:00
Carson Gross
1bf6aa0768 __handleHistoryUpdate unit test 2025-11-02 13:33:45 -07:00
Carson Gross
7b43aa4913 __issueRequest tests 2025-11-02 13:19:23 -07:00
Carson Gross
4dfa2184e3 tests 2025-11-02 12:34:51 -07:00