252 Commits

Author SHA1 Message Date
carson
e0decc9a19 Merge branch 'pull/388' into dev 2021-02-27 17:45:16 -07:00
carson
74c4abe1be add test for shouldCancel() contribution by Bo Peng 2021-02-27 17:44:39 -07:00
carson
3bcae82498 return a promise for a bright hyperscript future 2021-02-26 14:20:49 -07:00
carson
5a68871ac3 find the correct element to trigger after request events on 2021-02-23 14:01:35 -07:00
carson
c773e86131 regression test for previous fix
move event cancellation before filtering so form submissions can be cancelled properly
2021-01-25 14:20:06 -07:00
carson
58f373d1e5 config that disallows eval in htmx implementation
addressed https://github.com/bigskysoftware/htmx/issues/305
2021-01-04 10:36:56 -07:00
carson
0d76f98167 update 2021-01-03 15:42:06 -07:00
Ben Pate
b4d5e9e2a0 Test cases
- added test cases for htmx:beforeProcessNode and htmx:afterProcessNode
2021-01-03 10:33:31 -07:00
carson
79038d62e3 support from clause for triggers
also fixed pretty ugly bugs when parsing multple trigger definitions
2021-01-01 18:52:15 -07:00
Ben Pate
a327b0078e Unit tests working
- fixed issues with Chai unit tests
- removed old function
2020-12-29 19:57:05 -07:00
Ben Pate
354be034d2 Updating ParseInterval
- add tests
- try replacement function
2020-12-29 19:47:17 -07:00
Matthew Molloy
e01c7f77e4 skip validation when novalidate or form submitted indirectly 2020-12-27 12:59:48 +07:00
carson
b1729b2b85 improve API by taking string selectors in place of elements 2020-12-04 15:06:02 -07:00
carson
564d4eb651 holy smokes this test won't die 2020-12-04 10:08:01 -07:00
carson
c9ab48d9d5 more 1.0.1 prep 2020-12-04 10:03:59 -07:00
carson
58b36a6fb8 fix test - I guess all that matters is that the attribute is on the element :/ 2020-12-04 09:56:28 -07:00
carson
fda4957d65 handle multiple='false' case 2020-11-29 09:58:10 -07:00
Ben Weller
7576e21ab1 handle multi-select when "multiple" attr is present w/o value 2020-11-25 15:40:57 -06:00
carson
13366ac089 fix https://github.com/bigskysoftware/htmx/issues/239
use title node innerHTML if possible so that HTML escape sequences are respected.
2020-11-18 17:23:52 -07:00
carson
0f72543171 Update title if a title tag is found in the response content
fixes https://github.com/bigskysoftware/htmx/issues/231
2020-11-15 06:04:31 -07:00
carson
e0b5b52979 handle html parsing when script tag starts content
fixes https://github.com/bigskysoftware/htmx/issues/228
2020-11-11 10:04:01 -07:00
Ben Croker
28d47e91d5
Added test child script nodes evaluate when first child 2020-11-09 10:49:01 +01:00
carson
f7617a4653 do not fire requests when element is no longer in DOM
fixes https://github.com/bigskysoftware/htmx/issues/222
2020-11-05 08:39:33 -07:00
carson
c6c472bbf7 0.3.0 release 2020-10-27 16:58:52 -06:00
carson
751ad91755 basic test for logAll() 2020-10-19 09:52:18 -06:00
carson
f536512e45 script testing, evaluate script tag when type is absent 2020-10-19 09:33:47 -06:00
carson
d26a09c5c7 fix name 2020-10-18 06:49:07 -06:00
carson
165586b777 docs and tests for trigger filters 2020-10-17 13:21:15 -06:00
carson
6c8c124c42 Merge branch 'dev' into feature_event_filtering
# Conflicts:
#	src/htmx.js
2020-10-17 08:22:48 -06:00
carson
18220b3283 hook in tokenizer implementation 2020-10-04 18:26:17 -06:00
carson
e80169808c ignore non-elements when triggering post-swap events 2020-10-04 13:50:37 -06:00
carson
586829e097 temporary commit for supporting lexing 2020-10-04 09:39:10 -06:00
carson
77dc60dff7 IE 11 cleanup 2020-09-30 13:02:16 -06:00
carson
355ed7af81 more tests 2020-09-30 08:31:58 -06:00
carson
a9ffe0e617 remove gremlin 2020-09-29 16:20:12 -06:00
carson
a01fac40a2 htmx integration with the HTML validation API 2020-09-29 16:17:37 -06:00
carson
6900ab8278 don't set Content-Type in the presence of hx-encoding 2020-09-29 11:28:21 -06:00
carson
b401f54c54 undo temporary removal of clearing 2020-09-29 10:47:16 -06:00
carson
7a7401aa97 fixes for file upload
- proper content type header
- fix bug in FormData generation

test for both
2020-09-29 10:39:34 -06:00
carson
7b9e751960 first pass at file upload and supporting multipart/form-data
also fixed an obscure bug in the way inputs were collected w/ multiple values
2020-09-28 18:47:23 -06:00
carson
09712012c6 ensure that the new selected element exists 2020-09-27 15:52:31 -06:00
carson
bf5e1804ac strip the request class from content before snapshotting for history
includes both a logical and perf test, to make sure we perform reasonably well with large page sizes

fixes https://github.com/bigskysoftware/htmx/issues/200
2020-09-22 09:40:38 -06:00
carson
f39fccf28c case insensitive test for presence of headers because chrome uses lower case in the string 2020-09-18 12:13:16 -06:00
carson
7d49d5ab58 bump to 0.1.2 and add test for namespaced event and extension 2020-09-18 09:30:00 -06:00
carson
4e15653adb 0.1.1 release - fix double event dispatch bug 2020-09-18 08:59:51 -06:00
carson
4b4a480f9c switch to a white list for attribute swizzling
fixes https://github.com/bigskysoftware/htmx/issues/195
2020-09-14 07:28:41 -06:00
carson
499c54b846 ignore attributes w/ an @ in it 2020-09-13 22:27:24 -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
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