Commit Graph

59 Commits

Author SHA1 Message Date
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
carson
ba5cb7105a organize tests 2020-05-13 09:12:31 -07:00
carson
4b2ace772b polling test 2020-05-13 09:06:24 -07:00
carson
00e2249f0b history testing and rework 2020-05-13 06:45:43 -07:00
carson
033792fdc0 attribute tests 2020-05-12 17:33:32 -07:00
carson
7173b7bb80 more docs, move kt-history-elt back to an attribute 2020-05-10 08:14:34 -07:00
carson
2c75621526 Documentation update, make kt-indicator usable out of the box, standardize class names 2020-05-09 19:51:30 -07:00
carson
d08110ed22 remove attributes in favor of a single kt-trigger attribute w/ some syntax 2020-05-09 13:40:52 -07:00
carson
cd1319e135 test the IE SVG fix 2020-05-07 14:02:44 -07:00
carson
b003ccadf8 le big rename 2020-05-06 17:16:20 -07:00
carson
fe9dbb8b3e lots of work:
* reworked the swap code did away with merge in favor of general attributes swapping
* updated docs
* changed hx-swap-direct to hx-swap-oob
* updated build script to create a .gz so I can know what size that is
* cleaned up code so it's easier to follow
2020-05-04 17:55:19 -07:00
carson
9e8f101c0f infrastructure for copying out a version of htmx for testing in the broader browser world 2020-05-02 14:31:05 -07:00