120 Commits

Author SHA1 Message Date
carson
e6751be2ee first pass at hx-sync attribute 2022-01-17 13:11:09 -07:00
alfonsrv
fb78c826d1 Adding preliminary hx-inherit tests 2022-01-05 23:50:13 +01:00
Godefroid Chapelle
b25d95993c Circle CI first step 2021-12-15 18:46:24 +01:00
carson
c77cb83c54 clean up tests for 1.5.0 release 2021-07-12 10:48:53 -06:00
carson
a4a9d2d733 support for hx-request attribute with the following config values:
* `timeout` - the request timeout
* `credentials` - send credentials w/ the request
* `noHeaders` - do not send any non-standard headers with the request

We also support the `htmx.config.timeout` configuration value for setting the default timeout
2021-07-07 06:37:40 -06:00
carson
0488f233ae bump version + disable-htmx security feature 2021-04-04 04:03:52 -06:00
carson
5a68871ac3 find the correct element to trigger after request events on 2021-02-23 14:01:35 -07:00
carson
d2b1e10719 all for want of a p: don't blow history out on first successful cache usage :/
potentially fixes https://github.com/bigskysoftware/htmx/issues/370
2021-02-18 11:13:15 -07:00
carson
3c3cd304ae add test for hx-headers 2021-02-05 11:00:03 -07:00
Ben Pate
3022030505 Add test cases
Manual test cases for now.
2021-01-01 21:54:49 -07:00
carson
5fd24a7096 support the hx-preserve attribute
fixes https://github.com/bigskysoftware/htmx/issues/284
2020-12-24 06:36:15 -07:00
1cg
fa1db3b290
Merge pull request #225 from ChexWarrior/224-unlock-request-after-xhr-abort
End request lock when xmlHttpRequest is aborted

awesome, thank you!
2020-11-15 19:22:20 -07:00
Andrew Lehman
cc13cf721c Add test to list of manual tests 2020-11-15 21:09:07 -05:00
carson
5acd554a5c Two-fer:
* Implement `hx-vals` which is a JSON-only (and therefore safer) version of `hx-vars`
* Port all internal evals to use `Function` instead

May fix https://github.com/bigskysoftware/htmx/issues/213
2020-11-15 17:54:54 -07:00
carson
ab88b86109 add event-header extension 2020-10-05 08:29:09 -06:00
carson
586829e097 temporary commit for supporting lexing 2020-10-04 09:39:10 -06:00
carson
a01fac40a2 htmx integration with the HTML validation API 2020-09-29 16:17:37 -06:00
Ben Pate
9b28ddc129 Import Test Cases
These three test cases demonstrate SSE using a remote service.
2020-09-13 19:21:35 -06:00
carson
45f3909b9c Update htmx to latest hyperscript, fix tests 2020-09-11 08:00:45 -06:00
Ben Pate
09be7fff0d Added Tests
- added new scroll test
- renamed original test (because now there are two manual tests for scrolling)
2020-09-02 11:12:48 -06:00
carson
70d770a1b5 Add support for the hx-vars attribute, for including dynamically computed values in requests
Fixes https://github.com/bigskysoftware/htmx/issues/120
2020-06-28 17:07:39 -07:00
carson
eb04ab5b3e add scroll and view modifiers to hx-swap 2020-06-23 14:25:56 -07:00
carson
2524fcf436 rename test 2020-06-17 18:37:02 -07:00
chg20
6c8930028c
Merge pull request #94 from twidi/handle-events-and-content-after-handleSwap-extensions
Handle events and content after `handleSwap` in extensions
2020-06-17 18:05:45 -07:00
carson
b6f1c834cf include perf tests 2020-06-17 12:30:52 -07:00
chg20
64f263f778
Merge pull request #82 from 36864/dev
Add an extension to include the commonly-used X-Requested-With header
2020-06-15 18:25:07 -07:00
carson
0ac641b63f remove the hx-error-url attribute in favor of hyperscript
add basic hyperscript compatibility testing
2020-06-12 13:42:55 -07:00
Stephane Angel (Twidi)
86febd3efc
Extension.handleSwap: trigger events for extensions defined on parents
If an element is replaced by an extension in `handleSwap`, the events
(`afterSwap.htmx` and `afterSettle.htmx`) were not received by the
`onLoad` method of extensions defined on parents of the target, because
theses extensions were retrieved after the replacement, and so it was
not possible to get through the parents, the target not being in the dom
anymore.

This commits loads the extensions for the target and save them in
`eventDetail` before doing the swap, so they are accessible in
`triggerEvent`, and passed to `withExtensions` that use this list if
passed (else load them).

A new test is added that fails without the updates in `htmx.js`.
2020-06-12 01:20:13 +02:00
carson
2305aed18e Move X-HTTP-Method-Override out to an extension
fixes https://github.com/bigskysoftware/htmx/issues/86
2020-06-10 16:01:56 -07:00
36864
92561e193c Add an extension to include the commonly-used X-Requested-With header 2020-06-05 15:44:02 +01:00
carson
7b7f00baa0 include-vals extension + docs cleanup 2020-05-26 10:19:39 -07:00
carson
ec6ec68a1e remove-me extension 2020-05-26 08:36:14 -07:00
carson
821ae457f0 handle bad extensions gracefully 2020-05-26 08:11:32 -07:00
carson
666b4cbaa8 add tests for SSE and standardize syntax with websockets 2020-05-25 21:56:29 -07:00
carson
51697abff6 revert settle attribute swapping so internals work + hx-ws tests (ugh) 2020-05-25 19:46:10 -07:00
carson
7036557cba oob swapping fixes and firm up the settle step quite a bit 2020-05-25 16:34:19 -07:00
carson
860d263d4d pull hx-classes out to an extension 2020-05-24 17:04:59 -07:00
carson
23a9a33486 path-deps extension
fixes https://github.com/bigskysoftware/htmx/issues/21
2020-05-23 17:06:20 -07:00
carson
468c405d02 fix https://github.com/bigskysoftware/htmx/issues/33 - include empty input values in request 2020-05-23 09:23:29 -07:00
carson
cdb80690e9 support client side templating via an extension 2020-05-23 08:33:25 -07:00
carson
2110d49ee1 include extensions in dist 2020-05-22 21:50:01 -07:00
carson
3eb4a56e28 patch from @cscortes adding the json-enc extension 2020-05-22 19:41:42 -07:00
carson
ef152a73b9 Clean up URL parameter handling & tests, support anchors 2020-05-22 13:42:57 -07:00
carson
b96b9e3e32 support morphdom swapping as an extension
fixes https://github.com/bigskysoftware/htmx/issues/6
2020-05-22 11:18:39 -07:00
carson
033af9a8d2 htmx extension mechanism 2020-05-22 10:53:10 -07:00
carson
3aa8c64754 le big re-rename 2020-05-17 05:22:19 -07:00
carson
e1e4f25b0e regigger tests and add manual tests for hard-to-test things like prompt and confirm 2020-05-16 15:40:15 -07:00
carson
b50e6a7a35 Paramter testing 2020-05-15 06:34:54 -07:00
carson
5f9f1940b1 Clean up parameter inclusion logic and update demos to use GET where appropriate, rather than hiding from my bad design choices
Add API test + fixes and update all files
2020-05-14 17:10:24 -07:00
carson
36bd9a25ca event testing 2020-05-13 13:57:52 -07:00