601 Commits

Author SHA1 Message Date
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
0d66b4d9c3 bump package 2020-09-22 09:40:25 -06:00
carson
3bddff33e5 update site to new release v0.1.2 2020-09-18 12:16:47 -06:00
carson
4e82abe56f 0.1.2 release - fix case sensitivity issue w/ Chrome 2020-09-18 12:15:25 -06:00
carson
8338d60bf7 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	test/core/headers.js
2020-09-18 12:14:15 -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
ad4cbea344 bump to 0.1.2 and add test for namespaced event and extension 2020-09-18 09:29:24 -06:00
carson
e088280f01 web update for 0.1.1 2020-09-18 09:01:31 -06:00
carson
4e15653adb 0.1.1 release - fix double event dispatch bug v0.1.1 2020-09-18 08:59:51 -06:00
carson
c218853011 Merge remote-tracking branch 'origin/master' 2020-09-18 08:46:21 -06:00
carson
6344ca21bd bump hyperscript to a version that works 2020-09-18 08:46:12 -06:00
Ben Croker
5cb26e6fb2
Fixed typos 2020-09-18 15:41:49 +02:00
carson
f25a7ee470 update docs 2020-09-18 07:13:21 -06:00
carson
878a98da75 update docs 2020-09-18 06:54:45 -06:00
carson
98f2af9221 Merge remote-tracking branch 'origin/master' 2020-09-18 06:51:41 -06:00
carson
45facce1cd release 0.1 prep v0.1.0 2020-09-18 06:47:09 -06:00
carson
1dbabdb4c4 release 0.1 prep 2020-09-17 13:09:07 -06:00
carson
325cb29bf8 update docs 2020-09-15 12:29:27 -06:00
carson
c45596d248 correct event name position 2020-09-15 12:25:46 -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
1cg
42d4ce65b5
Merge pull request #196 from benpate/pullrequest-serverSentEvents-take-5
DOCUMENTATION: Server Sent Events
2020-09-15 10:48:27 -07:00
carson
5444ce598b remove swizzle terminology
*sad american noises*
2020-09-14 20:39:13 -06:00
Ben Pate
c449a9b1d3 Update hx-sse.md
Adding documentation
2020-09-14 20:29:18 -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
1cg
3c64876fce
Merge pull request #194 from benpate/pullrequest-serverSentEvents-take-5
FEATURE: Swap HTML on Server Sent Events (take 5)
2020-09-13 19:58:07 -07: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
Ben Pate
411e8fd09e Update htmx.js
- implement new SSE syntax
- add comments to delimit the start and end of SSE code block
- update splitOnWhitespace to allow leading/trailing whitespace
- reorganize maybeCloseSSESource() to bottom of SSE code block
2020-09-13 19:12:39 -06: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
499c46e819
Merge pull request #189 from bencroker/patch-20
Fixed link in docs
2020-09-10 19:03:24 -07: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
Ben Croker
692371d54c
Fixed link in docs 2020-09-09 12:54:08 +02: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