272 Commits

Author SHA1 Message Date
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
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
Ben Croker
21ec1094ec Add better title tests 2021-09-05 14:08:44 +02: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
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
carson
dd8ce0fe7a 1.4 release prep 2021-05-24 09:34:17 -06:00
carson
1d52b23fed support a htmx.config.useTemplateFragements option to use <template> tags to process server content for more flexibility (e.g. oob content alongside table elements) 2021-05-19 10:55:16 -06:00
carson
bdefbd4fec title tags must come before any svg tags to update the title
fixes https://github.com/bigskysoftware/htmx/issues/459
2021-05-17 11:39:22 -06:00
carson
91d677e60d change to hx-disable 2021-04-04 10:08:28 -06:00
carson
0488f233ae bump version + disable-htmx security feature 2021-04-04 04:03:52 -06:00
carson
1fca7dbb70 dispatch events by HX-Trigger-After-* on body if the element is no long in the DOM
fixes https://github.com/bigskysoftware/htmx/issues/418
2021-03-25 12:42:33 -06:00
carson
b42b0b1dfe fix test 2021-03-25 12:36:27 -06:00
carson
6503e29832 add regression test for https://github.com/bigskysoftware/htmx/issues/427 2021-03-20 19:58:47 -06:00
carson
e82219cc0d IE fixes 2021-03-09 08:54:16 -07:00
carson
b54d6e57d3 Improve API 2021-03-06 06:50:56 -07:00
carson
835436a99b Multiple trigger issue - fix https://github.com/bigskysoftware/htmx/issues/392 and https://github.com/bigskysoftware/htmx/issues/390
Mark handling by element, rather than by event
introduce `consume` keyword on trigger to allow for preventing it from bubbling to parent
2021-02-27 20:01:39 -07:00
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