3407 Commits

Author SHA1 Message Date
Mariss Tubelis
0c6bf35f22
Update preload extension documentation: form preloading and preload="always" (#3001)
* Update documentation for preload extension - include form element preloading and preload always attribute description

* Adjust version number

* Document HX-Preload header

* Rename preloaded header from HX-Preload to HX-Preloaded

* Up version

* Update www/content/extensions/preload.md

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>

---------

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2024-12-16 09:07:54 +01:00
Zixian
b3d3569719
Update hx-trigger.md (#3076)
* Update hx-trigger.md

- Added a clarification in notes to suggest adding a delay when adding reset to hx-trigger.

- Also thought it's useful to add a reference to MDN's list of web API  events, as it was one of the omissions in the hx-trigger doc which made me Google a little when I started out.

* Update hx-trigger.md

My bad, you're absolutely right. I've rewritten the proposed changes with your explanation in mind.
2024-12-15 09:25:58 +01:00
Carson Gross
44af27f400 fix url 2024-12-13 20:49:15 -07:00
Carson Gross
b0b08fa9d2 Merge remote-tracking branch 'origin/master' 2024-12-13 11:08:46 -07:00
Carson Gross
b82cf843e4 update sha v2.0.4 2024-12-13 11:06:48 -07:00
Carson Gross
db42b46218 2.0.4 release notes 2024-12-12 14:34:08 -07:00
Carson Gross
233bf01a4b 2.0.4 release notes 2024-12-12 14:33:31 -07:00
Carson Gross
1a80c283f5 2.0.4 release notes 2024-12-12 13:25:36 -07:00
Carson Gross
52db21955e prep next release 2024-12-12 13:13:37 -07:00
Carson Gross
fb78106dc6 prep next release 2024-12-12 13:12:49 -07:00
Geoffrey B. Eisenbarth
cc2466b1f8
Cancel vanilla submits from <button[form]/>. (#3072) 2024-12-12 13:09:26 -07:00
Vincent
a331244923
Support multiple extended selectors for hx-include, hx-trigger from, and hx-disabled-elt (#2902)
* Initial suggestion (squashed)

Support multiple extended selectors for hx-include

Additional test for nested standard selector

Add @MichaelWest22 hx-disabled-elt multiple selector test

Add hx-trigger `from` test with multiple extended selectors

Simplify

Include #2915 fix

Update htmx.js

Split for readability

Don't apply global to previous selectors

Rewrite loop, restore global recursive call, minimize diff

Use break for better readability

Co-Authored-By: MichaelWest22 <12867972+MichaelWest22@users.noreply.github.com>

* Keep global as a first-position-only keyword

* Wrapped selector syntax

* Replace substring check by individual chars check

* Fix format

---------

Co-authored-by: MichaelWest22 <12867972+MichaelWest22@users.noreply.github.com>
2024-12-12 11:12:01 -07:00
Mikael Ståldal
06d42778fa
Add http4k server example (#3012)
Adding https://github.com/mikaelstaldal/htmx-http4k-thymeleaf
2024-12-11 16:47:45 -07:00
Carson Gross
232667d2c6 fix https://github.com/bigskysoftware/htmx/issues/1788
boosted forms that issue a `GET` (and only a `GET`) and have no `action` attribute or an empty `action` attribute should clear the existing parameters of the current path when submitting lmao
2024-12-11 16:42:20 -07:00
Carson Gross
815c117088 comment out test that is breaking suite in browser 2024-12-11 15:06:03 -07:00
Carson Gross
e171bca9e7 Merge branch 'master' into dev 2024-12-11 14:59:27 -07:00
Simon Hartley
704dac7a7f
Replace deprecated String.prototype.substr usage (#2951)
Co-authored-by: shartley <scrhartley@github.com>
2024-12-11 14:28:09 -07:00
basvk
34dda10f9e
Do not execute hx-trigger="load" on re-initialization of an existing node (#2976)
* Do not execute hx-trigger="load" on re-initialization of an existing node

* simplify initNode firstInit logic
2024-12-11 14:27:34 -07:00
Alexander Petros
bd35f64cf7
Add missing htmx:trigger event on load triggers (#3033) 2024-12-11 14:20:12 -07:00
Alexander Petros
5ab508f652
Make bodyContains return true for nested shadow roots (#3034)
This fixes an issues in which `bodyContains()` would incorrectly return
false for nested shadow roots.
2024-12-11 14:17:32 -07:00
MichaelWest22
c24fb71a10
Handle Invalid template content (#3064) 2024-12-11 14:16:20 -07:00
Carson Gross
2e59a14213 follower24 sponsorship 2024-12-07 20:25:46 -07:00
Carson Gross
45f9c7aa4a prefer if statements to polymorphism 2024-12-07 20:18:47 -07:00
Carson Gross
f946dbd876 new sponsors 2024-12-05 13:18:27 -07:00
Carson Gross
2b88d967c1 design update 2024-12-03 07:25:05 -07:00
Carson Gross
68ef5c51e2 Merge remote-tracking branch 'origin/master' 2024-12-02 11:06:21 -07:00
Carson Gross
c9b8f0a211 add a modest critique 2024-12-02 11:06:12 -07:00
Ryan Kilpadi
445fddeb28
[Documentation] Update location of ws/sse demo server (#3052) 2024-11-30 10:30:53 +01:00
Ryan Kilpadi
ffbcd9291c
[Documentation] Fix outdated attribute links (#3051) 2024-11-30 10:27:47 +01:00
Carson Gross
24fb2fe522 essay fix 2024-11-25 05:00:59 -07:00
Carson Gross
bd2150aaaf Merge remote-tracking branch 'origin/master' 2024-11-25 04:48:51 -07:00
Carson Gross
8ff3b3d186 essay fix 2024-11-25 04:48:30 -07:00
Felipe Gené
1a23a5a6e9
feat: add amz-content-sha256 extension to docs (#3036) 2024-11-25 11:25:53 +01:00
Carson Gross
cef216bc55 essay fix 2024-11-24 18:04:35 -07:00
Carson Gross
3e1a3934c9 Merge remote-tracking branch 'origin/master' 2024-11-24 18:00:51 -07:00
Carson Gross
f600eb8550 essay fix 2024-11-24 18:00:42 -07:00
Alec Gargett
6067f4d5d7
fixed minor typo "and" --> "an".md (#3035) 2024-11-24 17:19:35 -05:00
Carson Gross
aa9434e002 Merge remote-tracking branch 'origin/master' 2024-11-24 13:01:09 -07:00
Carson Gross
b9cafa3ffa Merge branch 'master' into codin-dirty-essay 2024-11-24 13:00:33 -07:00
Carson Gross
4ba6852aea finish codin' dirty essay 2024-11-24 13:00:26 -07:00
MichaelWest22
5373966e7d
Improve detail.elt event documentation (#3007)
improve detail.elt event documentation
2024-11-24 12:24:42 -05:00
Paul Garner
bc7ea4a8d9
typing for defineExtension should allow partials (#3030) 2024-11-22 11:03:42 +01:00
Simon Hartley
7415f395b2
[Documentation] Fix link in web socket extension docs (#3026)
Co-authored-by: scrhartley <scrhartley@github.com>
2024-11-19 09:47:29 +01:00
Simon Hartley
7879d2e3bc
[Documentation] Add missing htmx:sendAbort event (#3024)
Co-authored-by: scrhartley <scrhartley@github.com>
2024-11-17 10:24:16 +01:00
Simon Hartley
001f9e024a
[Documentation] Fix incorrect link (#3022) 2024-11-15 09:57:00 +01:00
Carson Gross
dba0fcf7e6 update video 2024-11-14 15:32:00 -07:00
Alexander Petros
b4ebb527a1
WC essay typo fixes (#3021) 2024-11-14 08:54:21 +01:00
Markus Unterwaditzer
8d07de9708
fix vertical alignment of github stars button in all states (#3006)
Without uBlock, the button's alt-text would be 1px lower than the rest
of the nav items, and inconsistently capitalized.

With uBlock, the button would be slightly too high up.

This is on Firefox.

The solution is to apply styles on the `span` that GitHub's JS inserts.
However, using margin will make the entire nav jump during pageload, so
position: relative seems more robust there.
2024-11-13 22:29:30 -05:00
Alexander Petros
82eb2a635a
Fix name on essay (#3019)
Fix name on essay
2024-11-13 17:24:46 -07:00
Alexander Petros
ccbc101dd8
Add web components essay (#3018) 2024-11-13 15:20:56 -07:00