605 Commits

Author SHA1 Message Date
ehenighan
27fc37ce50
Issue #2676 - Tests for v2 to prevent regression of issue from v1 (#2829)
* Tests for v2 to prevent regression of issue from v1

* Linting

---------

Co-authored-by: Ed Henighan <ed.henighan@adi-uk.com>
2024-08-19 21:09:42 +02:00
Carson Gross
97b8c68dd3 release prep 2024-08-05 13:53:08 -06:00
Kyungmin Bae
27412551a5
fix: Fire htmx:trigger event on delayed triggers (#2411)
* Add test on htmx:trigger for delayed triggers

* Fire htmx:trigger event on delayed triggers
2024-08-05 13:47:58 -06:00
Carson Gross
df3fd8fe28 Merge remote-tracking branch 'origin/dev' into dev 2024-08-05 13:46:28 -06:00
Carson Gross
42343d9194 Merge branch 'master' into dev 2024-08-05 13:41:37 -06:00
pokonski
ee9b0e0390
Do not boost forms with method="dialog" (#2752)
* Do not boost forms with method="dialog"

* Clean up
2024-08-05 13:38:51 -06:00
Vincent
941e94fb98
Fix file upload through htmx.ajax (#2778)
* Fix File values handling in formDataFromObject

Fixes #2630

* Test file input upload + htmx.ajax file upload
2024-08-05 13:38:21 -06:00
Carson Gross
084df38c31 only removed templates explicitly used for encapsulating oob swaps
fixes https://github.com/bigskysoftware/htmx/issues/2776
2024-08-05 13:37:31 -06:00
Carson Gross
89dc9bea2e Merge remote-tracking branch 'origin/dev' into dev 2024-08-05 13:12:22 -06:00
Carson Gross
0ace4a731c scan through all siblings (not just until the first non-element) when doing an outerHTML swap to add things to settle
fixes https://github.com/bigskysoftware/htmx/issues/2787
2024-08-05 13:12:13 -06:00
Carson Gross
df16ed8e96 manual test for keeping indicators visible 2024-08-05 12:29:33 -06:00
Carson Gross
e99d8976f5 Manual test to ensure disabled elements are scrubbed when saving history 2024-08-05 12:22:51 -06:00
Ben Croker
a44a1b3c34
Add ability to trigger an event on another element using HX-Trigger response header (#2768)
* Update htmx.js

* Update htmx.js

* Update headers.js

* Update htmx.js

* Update htmx.js

* Update htmx.js

* Update hx-trigger.md
2024-07-29 10:33:24 -06:00
Igor Berlenko
49b5dae073
fixed typo in hx-trigger.js (#2728)
Update hx-trigger.js
2024-07-26 00:27:22 -04:00
Vincent
bec3657a81
Fix: values order with non-GET requests (#2749)
Fix values order with non-GET requests #2703
2024-07-26 00:22:59 -04:00
Carson Gross
f3ae976aa2 fix outerHTML body swapping issue
fixes https://github.com/bigskysoftware/htmx/issues/2639
2024-06-18 10:28:53 -06:00
Carson Gross
1e07206ed2 ignore empty files 2024-05-22 14:53:29 -06:00
Carson Gross
8928efc40a restore tests and dynamic hx-on behavior 2024-05-16 14:16:43 -06:00
Carson Gross
20b42aaf88 Merge branch 'master' into dev
# Conflicts:
#	src/htmx.d.ts
#	src/htmx.js
#	test/core/security.js
#	www/content/docs.md
2024-05-16 12:50:13 -06:00
Denis Palashevskii
dc93911566
Add tests for getSelectors method for extension registration (#2508)
add tests for getSelectors method for extension registration
2024-04-25 13:45:33 -06:00
Carson Gross
b991f20c3a make hx-on respect the hx-disable attribute 2024-04-25 09:49:50 -06:00
Carson Gross
2be7054525 lint 2024-04-17 05:45:40 -06:00
Carson Gross
01cb5e0d8d support hx-on in shadowroot 2024-04-17 05:25:28 -06:00
Carson Gross
ab4e9deabc remove manual tests for extensions 2024-03-26 15:56:40 -06:00
Carson Gross
cd4e6c62cf clean up bad IE references 2024-03-24 14:39:19 -06:00
Carson Gross
d92f165923 lint 2024-03-21 17:35:17 -06:00
Carson Gross
038e1a78f0 Merge branch 'v2.0v2.0' into dev
# Conflicts:
#	dist/htmx.js
#	dist/htmx.min.js
#	dist/htmx.min.js.gz
#	src/htmx.js
#	test/core/ajax.js
#	test/core/regressions.js
#	www/static/src/htmx.js
#	www/themes/htmx-theme/static/js/htmx.js
2024-03-21 17:28:09 -06:00
Vincent
e64238dba3
Fix IE11 incompatibilities (#2408) 2024-03-21 16:06:44 -06:00
Carson Gross
2bab9f4160 Merge branch 'dev' into v2.0v2.0
# Conflicts:
#	dist/ext/sse.js
#	dist/ext/ws.js
#	dist/htmx.d.ts
#	dist/htmx.js
#	dist/htmx.min.js
#	dist/htmx.min.js.gz
#	package.json
#	src/ext/sse.js
#	src/htmx.d.ts
#	src/htmx.js
#	test/attributes/hx-sse.js
#	test/core/regressions.js
#	test/ext/sse.js
#	www/static/src/ext/sse.js
#	www/static/src/htmx.d.ts
#	www/static/src/htmx.js
#	www/static/test/attributes/hx-sse.js
#	www/static/test/core/regressions.js
#	www/static/test/ext/sse.js
#	www/themes/htmx-theme/static/js/htmx.js
2024-03-14 09:11:36 -06:00
Carson Gross
ef791c51eb fix double script execution issue when using template parsing 2024-03-13 18:11:58 -06:00
Vincent
e780175736
Double script exec tests variants using templates: issue confirmed (#2365) 2024-03-13 17:24:02 -06:00
Joe Taber
520502121e
Add config option to ignore nested oob-swaps instead of processing them (#1235)
* Add config option to ignore nested oob swaps

* Fix oobElement root check

* Save config between tests; repeat some tests with different configs

* Add tests for oob-swaps in html, body tags

* Don't unnecessarily change const to var
2024-03-11 12:32:30 -04:00
Carson Gross
9431183cf1 port back double exec tests from 2.x to ensure its not an issue in 1.x, bump version 2024-03-01 15:50:21 -07:00
p.b
d1fc7895f6
Add textContent swap style (#2356)
* feat: add textContent swap style

* add documentation

---------

Co-authored-by: pbt <pb.to@icloud.com>
2024-02-29 11:11:46 -05:00
Vladyslav Tkachenko
21cdfcf17c
SSE Ext #2225: reinstantiate EventSource listeners upon reconnection logic (#2272)
* fix(sse): reinstantiate EventSource listeners
upon reconnection logic

refs #2225

* improve initialization logic of SSE on nested elements

---------

Co-authored-by: Denis Palashevskii <palash.denis@outlook.com>
2024-02-25 23:25:03 +01:00
Denis Palashevskii
1a8afc3502
fix sse-swap removal handling in ext/sse.js (#2247) 2024-02-25 20:58:39 +01:00
Carson Gross
c16758a198 alpha2 2024-02-09 11:13:47 -07:00
Carson Gross
15c69b141b pain 2024-01-25 21:06:50 -07:00
Vincent
01b292ada4 FormData + web component & parameters order tests
#1323 #1686 #2034 #1895
2024-01-25 11:05:53 +01:00
Daniel Nieto
5b4fb817d6
Add trailing slash to manual tests link (#2241)
add trailing slash to correctly link individual manual tests
2024-01-24 10:03:31 -05:00
Carson Gross
fd775f84be fix version and lint 2024-01-23 12:53:58 -07:00
Carson Gross
1023193b01 fix script tag double execution 2024-01-23 12:48:39 -07:00
Carson Gross
0a2c375970 Merge remote-tracking branch 'origin/v2.0v2.0' into v2.0v2.0 2024-01-23 12:16:08 -07:00
Denis Palashevskii
7fe27dd275
Refactor and expose swap in public API (#2191)
* refactor and expose swapping as a single method

* fixes after rebasing on latest 2.0

* fix optional parameters for swapping

* add `fullSwap` to internal API

* swap refactor polishing

* make linter happy
2024-01-19 16:31:34 -07:00
Alexander Petros
0e67ac8081 Format tests 2024-01-18 10:20:34 -05:00
Carson Gross
3fa7df1d23 Merge branch 'dev' into v2.0v2.0
# Conflicts:
#	dist/ext/sse.js
#	dist/htmx.d.ts
#	dist/htmx.js
#	dist/htmx.min.js
#	dist/htmx.min.js.gz
#	src/htmx.js
#	test/core/parameters.js
#	www/content/docs.md
2024-01-15 14:26:50 -07:00
Neel Raja
ac1d3f816f
Fix SSE tests and emit new "beforeMessage" event for SSE Extension (#2171)
* Emit htmx:sseBeforeMessage

* Add tests and respect cancels

* Fix syntax errors

* fix other syntax error

* finally fix these tests!
2024-01-15 14:19:00 -07:00
Alexander Petros
4e7baa3405 Remove libs for extension tests 2024-01-13 14:17:52 -05:00
Alexander Petros
569c29cb4e Remove test/ext files
This causes the timing issue in the shadow dom tests to reappear again.
2024-01-13 14:17:11 -05:00
Alexander Petros
7405e52895 Remove hyperscript tests 2024-01-13 14:12:37 -05:00