2538 Commits

Author SHA1 Message Date
Ari
6e93780d8d
Allow disable-element extension to disable multiple elements (#1650)
* Update disable-element extension

Allow multiple elements to be selected in the query

* Remove unnecessary comments

https://github.com/bigskysoftware/htmx/pull/1650#discussion_r1278773982

* Change tab indentations to spaces
2023-09-14 10:47:21 -06:00
Beni
7d70b3a31e
Make htmx.ajax always return a Promise (#1721)
* Fix return type for htmx.ajax

* Add `@returns` statement to `htmx.ajax` types

* Make issueAjaxRequest return types consistent

The function now always returns a `Promise`.
It will be resolved when the request completes, or when it naturally
wasn't sent.
It will be rejected, when the return statement is preceeded by a call to
`triggerErrorEvent`.
2023-09-14 10:46:18 -06:00
Dave Ashby
e3a68c5e1b
Add support for array templates to the client-side templates extension (#1776)
Fix client-side template support for arrays (non-breaking)

Co-authored-by: Dave Ashby <david.h.ashby.ctr@nga.mil>
2023-09-14 10:41:32 -06:00
Jacob Ebey
89f13e6cf2
Support formaction and formmethod on <button> (#1777) 2023-09-14 10:40:39 -06:00
John Ritsema
3845e0f92e
adds another htmx/go example (#1789) 2023-09-12 13:15:19 -04:00
Ben Croker
7924e76daf
Add allowScriptTags to docs (#1770)
Add `allowScriptTags`
2023-09-07 19:31:15 -04:00
Vincent
55c30b5607
Make htmx IE11 compatible again + tests IE11 compatible (#1687)
* Make htmx IE11 compatible again + tests IE11 compatible

* IE11 compatible handmade socket mock for ws-ext tests

* Fallback when xpath isn't supported, hx-on wildcard now working on IE11

* Merge remote-tracking branch 'upstream/relative-url-in-hx-boost' into ie11-compatibility
2023-09-06 09:55:18 -06:00
Alexander Petros
1763cfc64e
Use raw attribute href on hx-boost (#1742)
This resolves a bug when file system URLs are used on Windows. It
reverts part of a previous change where URLs were normalized prior to
the request in order to reduce key collisions in the history cache.
Because htmx's history cache is based entirely on response URLs, not
request URLs, I am reasonably confident that reverting this line doesn't
affect that optimization at all, but in any case it causes a bug which
is more important.
2023-09-06 09:54:43 -06:00
Vincent
8fa43b1293
[Doc] Fix missing beforeCleanupElement event in doc (#1762)
Fix missing beforeCleanupElement event in doc
2023-09-04 19:12:00 -04:00
1cg
05d53f4556
Update webring.md (#1758) 2023-09-02 13:04:21 -06:00
Eric Liu
b96b71f85c
Include default config values in TypeScript definitions (#1747) 2023-09-01 18:44:04 -04:00
gbourant
4af437a4e1
Add example of how to structure binary-data forms without data loss (#1670)
* prevent binary data loss by restructuring forms.

* Update www/content/docs.md

Co-authored-by: Denis Palashevskii <20725046+Renerick@users.noreply.github.com>

* moved the example to example directory

* Updated documentation based on feedback

---------

Co-authored-by: gbourant <root@gbourant.com>
Co-authored-by: Denis Palashevskii <20725046+Renerick@users.noreply.github.com>
2023-09-01 14:42:14 -04:00
Carson Gross
4fddc8583b add TurboScribe to webring 2023-08-31 12:19:26 -06:00
Carson Gross
d8f7afe5c4 delete logs like I told myself to and then forgot because old 2023-08-31 11:57:13 -06:00
Carson Gross
c230931d42 support ability to ignore new title tags via config, event and hx-swap 2023-08-31 10:54:47 -06:00
Carson Gross
ff20f880ee bump for next version 2023-08-31 09:54:39 -06:00
Carson Gross
eecc96c44e futzing 2023-08-30 22:32:14 -06:00
Carson Gross
220354d103 futzing 2023-08-30 11:39:37 -06:00
Carson Gross
4add72fa3c futzing 2023-08-30 11:28:07 -06:00
Carson Gross
3ccd590959 futzing 2023-08-30 10:59:12 -06:00
Carson Gross
4a89c32832 futzing 2023-08-30 10:38:42 -06:00
Carson Gross
8c0a91a17d futzing 2023-08-30 09:18:13 -06:00
Carson Gross
d443f86db6 Merge remote-tracking branch 'origin/master' 2023-08-30 07:22:19 -06:00
Carson Gross
5aa82baf0e webring + remove graph 2023-08-30 07:22:09 -06:00
Amr Ojjeh
24cd2a0148
Fix typo in multi-swap.md (#1740)
is not possible -> it's impossible
2023-08-29 12:27:32 -04:00
Ben Croker
0831b4e2f3
Update preload extension docs (#1741) 2023-08-29 12:26:36 -04:00
Alexander Petros
0a3c3adbfa
Expand contribution guidelines to separate file (#1737)
* Expand contribution guidelines to separate file

* Add misc section
2023-08-28 15:38:42 -06:00
dependabot[bot]
101f255f5c
Bump golang.org/x/crypto from 0.0.0-20210322153248-0c34fe9e7dc2 to 0.1.0 in /www/static/test/1.9.5/test/servers/ws (#1723)
Bump golang.org/x/crypto in /www/static/test/1.9.5/test/servers/ws

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210322153248-0c34fe9e7dc2 to 0.1.0.
- [Commits](https://github.com/golang/crypto/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-27 14:19:02 -04:00
Ben Croker
bf3c6b1c17
Fix typo in attribute (#1719) 2023-08-26 14:28:46 -04:00
Carson Gross
6dff1c3574 add release page v1.9.5 2023-08-24 13:13:05 -06:00
Carson Gross
cff09999cf update docs and changelog 2023-08-24 13:10:05 -06:00
Carson Gross
b26ca40b0c update sha 2023-08-24 12:38:46 -06:00
Carson Gross
b3a4a5fc1a prep 1.9.5 release 2023-08-24 12:38:20 -06:00
Carson Gross
86872b1091 Merge branch 'master' into dev 2023-08-24 12:16:49 -06:00
Carson Gross
a9ae4e3e96 Merge remote-tracking branch 'origin/dev' into dev 2023-08-24 12:16:35 -06:00
Alexander Petros
42646e3c13
Add "Why htmx Doesn't Have a Build Step" essay (#1705)
Add build step essay
2023-08-24 12:15:23 -06:00
Mark Gibson
94623d1129
Fix hx-on/hx-on:* to suppress evaluation if allowEval is false (#1682)
* Added more tests for allowEval=false

* Wrap hx-on event handlers in maybeEval

* Create and cache hx-on function on first event trigger.
2023-08-24 12:11:00 -06:00
Denis Palashevskii
212c9fbd3a
[websocket] pass hx-target id in the HEADERS (#1674)
Previously, ws.js used `ws-connect` element as target when collecting request headers.
Now it correctly takes `hx-target` attribute into account
2023-08-24 12:09:22 -06:00
Rattly
e07dcdf60a
Add Kotlin examples to server-examples (#1715)
Update server-examples.md
2023-08-24 08:34:26 -06:00
Carson Gross
63758d4523 restore last row in sponsors table 2023-08-19 09:01:06 -06:00
Carson Gross
30a6a40f4e fix star graph 2023-08-18 16:29:36 -06:00
Carson Gross
7247e8abd7 Merge branch 'master' into dev 2023-08-17 10:39:59 -06:00
Alexander Petros
93bd81b6d0
Track DOM content loaded for ready() function (#1688)
Track whether DOMContentLoaded has been fired
2023-08-16 16:42:09 -06:00
Carson Gross
193a9ea9d2 Merge remote-tracking branch 'origin/master' 2023-08-16 12:19:39 -06:00
Carson Gross
5947a5d353 fix title 2023-08-16 12:18:30 -06:00
Blake Williams
9ed1275ec3
Document hx-select-oob swap-strategy capabilities (#1694)
The `hx-select-oob` attribute supports specifying a swap strategy but
it's not publicly documented on the attribute page. This documents that
behavior so that it's easy to discover.
2023-08-15 17:29:22 -04:00
Carson Gross
47af93bdb0 fix url 2023-08-09 17:50:07 -06:00
Carson Gross
9e1dcd1483 Merge remote-tracking branch 'origin/master' 2023-08-09 17:49:32 -06:00
Carson Gross
3201dd66ce add nuclei, make table responsive 2023-08-09 17:49:19 -06:00
Alexander Petros
bfd7965dec
Disable logAll in headless mode (#1673)
Enabling logAll in just one test has the capacity to overwhelm the CI
with log output, so we disable it if the webdriver is automated.
2023-08-06 18:06:17 -06:00