216 Commits

Author SHA1 Message Date
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
8ac2baf586 switch to colon separator for sse and ws to avoid comma issues w/ URLs 2020-09-15 12:22:54 -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
b657c0ad41 Merge remote-tracking branch 'origin/dev' into dev 2020-09-13 22:27:32 -06:00
carson
499c54b846 ignore attributes w/ an @ in it 2020-09-13 22:27:24 -06:00
Ben Pate
9b28ddc129 Import Test Cases
These three test cases demonstrate SSE using a remote service.
2020-09-13 19:21:35 -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
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
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
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
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
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
93cfc2e1f6 update to alpha4 2020-06-30 16:15:22 -07:00
carson
416ee3dde2 fix test 2020-06-30 12:17:34 -07:00
carson
b22b1d104c Merge remote-tracking branch 'origin/dev' into dev 2020-06-30 10:45:38 -07: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
chg20
2fbe230853
Merge pull request #122 from bencroker/patch-8
Allowed `hx-push-url` to accept a string
2020-06-28 22:17:24 -07:00
carson
70d770a1b5 Add support for the hx-vars attribute, for including dynamically computed values in requests
Fixes https://github.com/bigskysoftware/htmx/issues/120
2020-06-28 17:07:39 -07:00
Ben Croker
a4a550d9ea
Added test for when string 2020-06-26 15:52:21 +02:00
carson
eb04ab5b3e add scroll and view modifiers to hx-swap 2020-06-23 14:25:56 -07:00
carson
276082f2c2 exclude value and id from the settle swap to avoid flicker 2020-06-19 06:29:46 -07:00
carson
2524fcf436 rename test 2020-06-17 18:37:02 -07:00
carson
74c7395f1f integrate improvement for extension swapping, back out extension passing through event object, run www and dist 2020-06-17 18:33:41 -07:00
chg20
6c8930028c
Merge pull request #94 from twidi/handle-events-and-content-after-handleSwap-extensions
Handle events and content after `handleSwap` in extensions
2020-06-17 18:05:45 -07:00
carson
99d18d347f test fix 2020-06-17 15:35:58 -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