637 Commits

Author SHA1 Message Date
Ben Pate
6b86e15f39 Update for multiple event names
+ tests
2021-11-17 20:01:40 -07:00
carson
3ee3739b4b add tests 2021-11-17 16:19:37 -07:00
carson
dc016ba4f9 small test fix 2021-11-16 12:42:36 -07:00
Ben Pate
e23610b191 Merge remote-tracking branch 'upstream/dev' into pr-websocket-extension 2021-11-15 12:09:07 -07:00
Ben Pate
b5c3b4723d Update tests
- hx-target test now works correctly
- fixed problem targeting correct nodes
2021-11-15 12:01:30 -07:00
Ben Pate
4a384739c6 Clean up demo servers
- remove log comments
- fix some stylesheet issues
2021-11-15 11:25:41 -07:00
Johan Vosloo
d9cded6440
Update events.js 2021-11-15 18:24:13 +01:00
Ben Pate
0e3e61b0ac SSE Test Server 2021-11-15 10:15:15 -07:00
Ben Pate
6f9c3c2e03 WebSocket Test Server 2021-11-15 10:15:06 -07:00
msladecek
038821cca8 swap into all elements matching the out-of-band css selector 2021-11-13 12:10:13 +01:00
carson
2d9c49a8a1 support an HX-Retarget header to retarget the content to another element 2021-11-12 16:58:27 -07:00
carson
e7e7b1cb37 Only cancel clicks and submits
fixes https://github.com/bigskysoftware/htmx/issues/588
2021-11-12 16:43:28 -07:00
carson
2944bf372c search for extensions in new content
fixes https://github.com/bigskysoftware/htmx/issues/281
2021-11-12 15:37:29 -07:00
Ben Pate
87e332ad1a Update stylesheet.css
playing with code coloring
2021-11-10 19:44:20 -07:00
Ben Pate
4ab7d918ce SSE Test Server
rebuild navigation and stylesheet for test pages.
2021-11-10 19:42:04 -07:00
Ben Pate
3bd85e1e8d Add test servers 2021-11-10 18:28:39 -07:00
Ben Pate
de228177bf Quick check in to demo 2021-11-09 13:45:04 -07:00
carson
e67e5ba41b bump version & disambiguate non-swaps from errors 2021-10-30 08:19:54 -06:00
Ben Pate
2aca696c88 Rebuild SSE using new Extension API
- internal API has been moved to a constructor variable.
- added reconnect with exponential backoff
- initial tests of SSE features are working
- added many JSDoc comments in the process.
- added link to "sse triggers" test
2021-10-29 13:24:16 -06:00
Ben Pate
93acf88431 Update test cases
- trigger tests working.
- settle tests failing
2021-10-25 21:56:24 -06:00
Ben Pate
dd5b92b46a Triggers working 2021-10-25 20:15:56 -06:00
Ben Pate
a1113ec111 More tests working
- multichannel test works well.
- removing debug code from simple SSE example
2021-10-24 12:34:01 -06:00
Ben Pate
260b82314a Initial port
- rebuilding this fork because of a corrupted git repository.  This branch is "working" but needs more testing to be certain.
- major changes to the way that htmx handles extensions.  this will need to be vetted more carefully before we proceed.
2021-10-24 11:56:45 -06:00
carson
bd1493f413 Merge branch 'master' into dev 2021-09-29 07:53:44 -06:00
carson
d2c5dd8603 respect the enctype declaration on boosted forms
fixes https://github.com/bigskysoftware/htmx/issues/605
2021-09-29 07:36:59 -06:00
carson
60a6717994 support <script src='...'></script> tags 2021-09-28 05:17:20 -06:00
carson
6821e366a8 remove redundant test 2021-09-27 07:55:54 -06:00
carson
14e87fc623 Merge remote-tracking branch 'origin/dev' into dev 2021-09-27 07:50:41 -06:00
carson
9254d7fa5a extend htmx:beforeSwap event to allow much more flexible handling of response codes and content swapping 2021-09-27 07:50:31 -06:00
Mamés Palmero
443c271d40 Fix root: option of the intersect event 2021-09-27 15:25:15 +02:00
carson
6754c67b53 Merge branch 'master' into dev
# Conflicts:
#	README.md
2021-09-23 15:44:27 -06:00
carson
d153929304 include HX-Boosted header when request is via a boosted element
fixes https://github.com/bigskysoftware/htmx/issues/600
2021-09-23 15:43:45 -06:00
carson
e3cb9b591a support unset to, well, unset attributes 2021-09-19 16:41:31 -06:00
Ben Croker
700bc3ae58
Improved wording of tests 2021-09-06 22:50:34 +02:00
carson
a1d320243d only return a promise for API usage
fixes https://github.com/bigskysoftware/htmx/issues/585
2021-09-06 10:43:04 -06:00
Ben Croker
21ec1094ec Add better title tests 2021-09-05 14:08:44 +02:00
Frankie Robertson
4a59263d40 Allow listening to events from:window 2021-08-29 14:07:17 +03:00
carson
c77cb83c54 clean up tests for 1.5.0 release 2021-07-12 10:48:53 -06:00
carson
94a9ef1dbb consume white space after interval 2021-07-09 17:52:21 -06:00
carson
0eeb922a1e scroll fixes 2021-07-09 06:01:56 -06:00
carson
e621b52867 tests and bug fixes for scrolling targets 2021-07-08 13:11:48 -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
bbf2ae4412 support document as an extended query selector and plug it in for the from: clause in triggers 2021-07-06 15:27:51 -06:00
carson
40ed7b0827 allow filters for polling 2021-07-06 10:24:55 -06:00
carson
c9936b4a35 Merge remote-tracking branch 'origin/dev' into dev 2021-07-06 09:57:51 -06:00
Matthew Molloy
e283e476b5 added regression test for image maps 2021-07-06 00:52:55 +09:00
carson
1298c41435 use clicked event to track button clicks as well for OSX 2021-07-02 12:30:08 -06:00
carson
6d1a86836e track last clicked button using focus to include value in submission 2021-07-01 13:54:11 -06:00
carson
444660158f regression for hyperscript htmx:afterRequest form reset integration 2021-06-14 09:46:55 -06:00
carson
49405727d5 script tags eval in the global scope 2021-05-25 09:11:37 -06:00