252 Commits

Author SHA1 Message Date
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
carson
088c6814b8 detect multiple attribute and handle getting values 2020-09-01 19:10:50 -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
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
3ec2b3bb3a
Merge pull request #166 from bencroker/patch-17
Added event tests and fixed names
2020-08-30 15:46:26 -07: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
Robert Ros
c6fe43adcd Add testcase for issue with id attributes with a dot. 2020-07-20 20:57:16 +02: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
Ben Weller
8fcf27ab8c add test for <select multiple> 2020-07-19 09:13:32 -05:00
carson
4f3cf2d889 Move events from <event name>.htmx (jQuery style) to htmx:<event name> (zepto style)
fixes https://github.com/bigskysoftware/htmx/issues/109
2020-06-30 10:45:30 -07:00
carson
276082f2c2 exclude value and id from the settle swap to avoid flicker 2020-06-19 06:29:46 -07:00
chg20
025b043918
Merge branch 'dev' into json-parse 2020-06-17 15:28:33 -07:00
carson
f9463686e0 switch to contain for safari 2020-06-17 15:15:17 -07:00
carson
6083a2ea74 remove bad console logs 2020-06-17 14:58:38 -07:00
carson
5c8b47deb3 update perf to reasonable numbers 2020-06-17 13:54:43 -07:00
carson
b07ed32dc4 selector implementation for processNode 2020-06-17 13:42:18 -07:00
carson
b6f1c834cf include perf tests 2020-06-17 12:30:52 -07:00
carson
19b933449b catch empty IDs in attribute swap, fixes https://github.com/bigskysoftware/htmx/issues/101 2020-06-16 19:20:23 -07:00
carson
efd3ab85f0 regression for https://github.com/bigskysoftware/htmx/issues/101 2020-06-16 16:46:19 -07:00
carson
6f14cba2e6 Trigger events on new content, rather than triggering element, since triggering element may have been replaced
fixes https://github.com/bigskysoftware/htmx/issues/79
2020-06-10 16:09:00 -07:00
Robert Schroll
1060c9e88a Avoid throwing errors when parsing malformed JSON
Instead, treat it as if no value was present.
2020-06-08 00:55:09 -07:00
acnebs
d01025823e Rename custom HTTP headers to no longer start with X-
This convention is deprecated, as per this RFC from the IETF: 
https://tools.ietf.org/html/rfc6648
2020-05-28 01:29:51 +01:00
carson
3d814327af handle exceptions in embedded script tags gracefully 2020-05-26 17:32:22 -07:00
carson
c0e996f144 fix previous fixes 2020-05-26 17:25:21 -07:00
carson
977aaa8bbd fix spurious 404s in events test 2020-05-26 16:55:38 -07:00
carson
d144742048 test + test fixes 2020-05-26 16:27:20 -07:00
carson
424826b087 support script tags in returned content 2020-05-26 06:59:03 -07:00
carson
88232a6913 add test because javascript is so terrible 2020-05-25 22:52:13 -07:00
carson
51697abff6 revert settle attribute swapping so internals work + hx-ws tests (ugh) 2020-05-25 19:46:10 -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
ef152a73b9 Clean up URL parameter handling & tests, support anchors 2020-05-22 13:42:57 -07:00
carson
b2890e3cf1 Fix https://github.com/bigskysoftware/htmx/issues/22
include values in proper form order if the element is enclosed in one
2020-05-21 11:15:45 -07:00
carson
52f58241f6 bump version remove js version property 2020-05-17 07:01:01 -07:00
carson
0a2f717f10 fix up final stuff from rename 2020-05-17 05:59:13 -07:00
carson
3aa8c64754 le big re-rename 2020-05-17 05:22:19 -07:00
carson
390ac2443b copy children collection so merging oob node doesn't screw up iteration
fixes https://github.com/bigskysoftware/kutty/issues/4
2020-05-16 06:54:33 -07:00
carson
fd6e3f68d8 version bump and start using dev branch like a civilized human 2020-05-15 19:25:52 -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