Ben Pate
b4f26aef0e
Documentation
2020-12-14 13:41:41 -07:00
Ben Pate
84ac44b591
Add "ignore:" command for extensions
2020-12-14 13:26:34 -07:00
Ben Pate
8bad3b61f5
Merge pull request #3 from bigskysoftware/dev
...
Update base branch to bigskysoftware/htmx::dev
2020-09-13 15:52:03 -06:00
carson
a63d272441
Merge remote-tracking branch 'origin/dev' into dev
2020-09-11 08:00:52 -06:00
carson
45f3909b9c
Update htmx to latest hyperscript, fix tests
2020-09-11 08:00:45 -06:00
1cg
1ac7821c84
Merge pull request #190 from benpate/pullrequest-304-not-modified-take2
...
Add test case
2020-09-10 19:03:00 -07:00
carson
9c592d4e2f
Support pushing the value of xhr.responseURL
if it is available
2020-09-10 13:05:56 -06:00
carson
a890abf626
Support non-ASCII values in headers by auto-encoding them
...
Include a flag header indicating the auto-encoding occurred
Fixes https://github.com/bigskysoftware/htmx/issues/191
2020-09-10 12:40:25 -06:00
carson
7cc8f08377
regression test for @ name support in attributes (Alpine.js issue)
...
This passes, but apparently there is an outstanding issue.
2020-09-10 08:22:31 -06:00
carson
c3b1c63484
Support kebab naming for events
2020-09-10 08:02:00 -06:00
Ben Pate
33f79d79b7
Add test case
...
Adds a test case to demonstrate that 304 "Not Modified" response should be treated just the same as a regular 200 "Ok" response.
2020-09-09 20:52:17 -06:00
carson
a0b368022f
Back out ignoring 304
response code, since we still want to swap the old content
2020-09-07 17:54:57 -06:00
carson
d5f6ef2900
Add support for 304
response code in addition to the 204
response code
2020-09-07 10:06:35 -06:00
carson
278b5f1196
add tests and fix autofocus to work w/ top level content
2020-09-07 09:45:41 -06:00
1cg
6e649c02bf
Merge pull request #160 from benpate/pullrequest-processFocus
...
FEATURE: Support "autofocus" attribute when swapping content
2020-09-07 08:32:41 -07:00
1cg
9ffbed804b
Merge pull request #184 from bencroker/patch-19
...
Removed redundant parameter
2020-09-03 08:09:06 -07:00
carson
5f300f1bbc
move polling interval into single setup to avoid having multiple intervals created
2020-09-03 09:07:47 -06:00
1cg
6227f1ae13
Merge pull request #182 from benpate/pullrequest-scroll-event-throttling
...
Pullrequest scroll event throttling
2020-09-03 08:04:11 -07:00
Ben Croker
ab76296f7a
Removed redundant parameter
2020-09-02 21:58:42 +02: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
Ben Pate
ea8f633e9a
Update scroll event handler
...
This commit follows the advice from this article (https://www.benmarshall.me/attaching-javascript-handlers-to-scroll-events/ ) that recommends using a global "lock" variable to prevent multiple scroll handlers from overlapping each other.
It was originally baked into [another pull request](https://github.com/benpate/htmx/tree/pullrequest-limits ) and is being separated out into its own PR
2020-09-01 20:45:27 -06:00
1cg
6252855c4a
Merge pull request #162 from nyash/master
...
FEATURE: find selector option of the hx-target attribute
2020-09-01 18:42:01 -07:00
carson
088c6814b8
detect multiple attribute and handle getting values
2020-09-01 19:10:50 -06:00
carson
48282482c6
Merge remote-tracking branch 'origin/dev' into dev
2020-09-01 19:08:54 -06:00
carson
5bd584a75a
Process stand alone hyperscript
...
This needs to be reworked so that hyperscript relies on htmx events, so htmx doesn't need to know about hyperscript
2020-09-01 19:08:47 -06:00
1cg
853ef2c05a
Merge pull request #159 from benpate/pullrequest-closeconnections
...
Close connections on swapInnerHTML
2020-09-01 18:06:27 -07:00
carson
807723311f
properly fire htmx:afterRequest and htmx:afterOnLoad on outerHTML replacements
2020-09-01 18:28:21 -06:00
carson
0f9e93180a
Bump to 0.1 to prep for next release
2020-09-01 18:10:42 -06:00
1cg
49849b3059
Merge pull request #181 from jreviews/patch-2
...
new afterOnLoad and afterRequest tests
than you!
2020-09-01 17:10:06 -07:00
carson
43cee3156e
fix test - had to turn off the sinon fake server and issue a real garbage request, and rewrite it as an async test
2020-09-01 18:05:36 -06:00
Alejandro Schmeichler
da1707b5a0
new afterOnLoad and afterRequest tests
...
To make sure these are fired when using outerHTML swapping
2020-09-01 19:49:56 -04:00
nyash
7e35a2ac41
add hx-target find selector test
2020-08-31 10:34:08 +02:00
1cg
8983448b33
Merge pull request #145 from rros/users/rros/fix-queryselector-issue
...
Fix issue with unquoted id attribute in query selector
2020-08-30 18:50:50 -07:00
1cg
25a61c3547
Merge pull request #172 from rros/users/rros/fix-issue-170
...
Fixes htmx not defined when script is loaded deferred
2020-08-30 15:49:43 -07:00
1cg
3ec2b3bb3a
Merge pull request #166 from bencroker/patch-17
...
Added event tests and fixed names
2020-08-30 15:46:26 -07:00
Robert Ros
0e10620106
Create htmx variable to hold the object which gets exported from the module so internal references to htmx work when the scripts is loaded deferred.
2020-08-24 16:31:32 +02:00
carson
03cacce5a6
Merge remote-tracking branch 'origin/master'
2020-08-19 07:40:09 -06:00
carson
22af2347b9
enqueue requests when a trigger occurs while a request is in flight
...
fixes https://github.com/bigskysoftware/htmx/issues/152
2020-08-19 07:39:55 -06:00
Ben Croker
bfaedef497
Added event tests
...
Added `afterRequest`, `afterOnLoad` and `sendError` event tests.
2020-08-17 19:37:56 +02:00
Ben Croker
331881aed9
Fixed event names
2020-08-17 19:31:07 +02:00
nyash
df971a3667
update hx-target docs
2020-08-14 16:43:27 +02:00
nyash
1391cf0e4b
add "find" selector option to hx-target attribute
2020-08-14 16:38:18 +02:00
Ben Pate
018ba7c2c2
add processFocus to makeAjaxTask
...
This adds an additional check to makeAjaxLoadTask that focuses on the first element with the HTML standard "autofocus" attribute set.
I've put it right next to the makeAjaxLoadTask function for clarity, but it should probably be organized into a different place, next to other corresponding functions.
2020-08-13 20:50:02 -06:00
Ben Pate
3324532037
Closing connections BEFORE removing nodes
...
In some tests, the previous code triggered an htmx:swapError because the node had already been removed from the DOM before the closeConnections() function was called.
I think it was a race condition that I didn't catch earlier. Switching the ordering of these two functions makes sense, and it looks like it's addressed the error.
Sorry for the sloppy check-in.
2020-08-13 19:56:55 -06:00
Ben Pate
7325a106af
Close connections on swapInnerHTML
...
- connections were not being closed in all cases. This is a minimal patch to close connections when the InnerHTML is swapped out.
2020-08-13 19:46:19 -06:00
Robert Ros
c971719f16
Fixes issue with id attribute selector in query selector.
2020-07-20 20:57:34 +02:00
Robert Ros
c6fe43adcd
Add testcase for issue with id attributes with a dot.
2020-07-20 20:57:16 +02:00
Ben Weller
0089ce480d
use internal toArray() + map() instead of Array.from()
2020-07-20 12:44:37 -05:00
Ben Weller
381005b018
clean up extraneous newlines in test
2020-07-19 09:29:56 -05:00
Ben Weller
612d2fedf1
remove console.log() noise from new test
2020-07-19 09:15:58 -05:00