3425 Commits

Author SHA1 Message Date
Jeremiah Johnson
4184d1fd0c
fix(swap): apply swap delay in swap function instead of handleAjaxResponse (#2845)
* fix(swap): apply swap delay in swap function instead of handleAjaxResponse

* add swap delay test
2025-06-02 11:19:11 -06:00
Oliver Haas
6d238f3d61
Feat/hx reselect support unset (#3153)
feat: handle 'unset'for HX-Reselect in swap function (+ test)
2025-06-02 11:01:20 -06:00
Simon Hartley
075ed73799
Fix target value in htmx:targetError when inheritance has been used (#3178)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-02 10:58:31 -06:00
Carson Gross
70f41e0c6c Merge remote-tracking branch 'origin/dev' into dev 2025-06-02 10:57:57 -06:00
JacobMonticello
e4ecc55586
Typo in addEventListener - use evt instead of event (#3188)
Use evt instead of event

Co-authored-by: Jacob monticello <Jacob Monticello>
2025-06-02 10:57:46 -06:00
Gustavo Guzmán
11a8e9c6c2
Feature: add extensionsToIgnore to withExtensions (#3195)
feat: add extensionsToIgnore to withExtensions
2025-06-02 10:56:51 -06:00
Carson Gross
646c8583be Merge remote-tracking branch 'origin/dev' into dev 2025-06-02 10:56:11 -06:00
David Martiník
730bd8224d
Fixes issue 1537 - OOB does not escape query selector - updated version (#3304)
* Fixes issue 1537 - OOB does not escape query selector

* Adds test cases for oob swaps where the id contains special characters

* Updated oob multiple elements with the same ID test

* fix(issue-1537): resolved conflicts with master

* fix(issue-1537): fixed codestyle issues

---------

Co-authored-by: Fraser Chapman <fraser.chapman@gmail.com>
Co-authored-by: David Martiník <david.martinik@powerflow.cz>
2025-06-02 10:52:29 -06:00
Simon Hartley
8409ebca3b
Fix missing TypeScript property (#3315)
Add hidden elt property to HtmxRequestConfig

Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-02 10:50:51 -06:00
MichaelWest22
083dbcdd6f
update web test-runner and remove temp summaryReporter workaournd (#3320)
* update web test-runner and remove temp summaryReporter workaournd

* Update error reporting to show in context of the test file and as a summary at the bottom
2025-05-22 07:17:16 +02:00
Simon Hartley
d2e39716fb
Fix type for event parameter (#3317)
Fix type of event for HtmxExtension.onEvent

Co-authored-by: scrhartley <scrhartley@github.com>
2025-05-19 07:40:36 +02:00
QBH3
407408b947
Update sse.md (#3303)
version of sse extension does not match the sha384 hash, i believe it to be the newer 2.2.3 version of htmx-ext-sse
2025-05-08 08:22:55 +02:00
Devin Muzzy
0404d0137b
documentation clarification for htmx:load (#3299)
htmx:load doc clarification
2025-05-01 08:33:09 +02:00
Simon Hartley
f4cc8382a4
Correction for confirm example (#3296) 2025-04-30 08:10:40 +02:00
Simon Hartley
ff190eef26
Add substr lint (#3295)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-28 07:15:03 +02:00
Simon Hartley
53496ff428
Fix typo (#3294)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-28 07:12:33 +02:00
Carson Gross
a9b673c93c Merge branch 'dev' of github.com:bigskysoftware/htmx into dev 2025-04-24 14:24:45 -06:00
MichaelWest22
5520566fc3
Add historyRestoreAsHxRequest config to optionally disable hx-request header from history restore requests (#3278)
* Added Config to optionally disable the breaking HX-Request change made recently

* fix broken resolved conflict
2025-04-24 14:21:23 -06:00
Simon Hartley
db8e5e03cb
Fix event not being available in hx-vals/hx-vars when hx-trigger has delay (#3196)
Fix event not being available in hx-vals/hx-vars when hx-trigger uses delay

Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-24 13:58:31 -06:00
Emil Hemdal
e01027b938
Write title as innerText instead of innerHTML (#3173)
* Change innerHTML to innerText for title element

Some security checks are grumpy when using innerHTML. Using innerText
instead calms them.

Signed-off-by: Emil Hemdal <emil@hemdal.se>

* Add Type Hints/Cast

* Change to textContent instead of innerText

Also remove type hinting/casting since it is no longer needed

Signed-off-by: Emil Hemdal <emil@hemdal.se>

---------

Signed-off-by: Emil Hemdal <emil@hemdal.se>
2025-04-24 13:57:34 -06:00
Simon Hartley
6a585f9f3c
Get rid of latest usages of substr (#3074)
* Replace latest usages of substr

* Replace usage of substr in tests

---------

Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-24 13:56:55 -06:00
MichaelWest22
05d37e6ea6
Remove old IE support (#3277)
* Remove old IE support

* don't need regex in normalizePath

* fix verifyPath to handle about: situations like some iframes now that there is no fallback

* improve diff

* fix logic mistake in last diff improvment

* Update url normlization test post testing upgrade

* remove un-needed document
2025-04-24 13:56:05 -06:00
MichaelWest22
d3bcd787ba
proxy window.location for testing and extension overrides (#3283)
* proxy window.location for testing and extension overrides

* when not whe in test name
2025-04-24 13:55:27 -06:00
MichaelWest22
408850a08e
Additional Code Coverage (#3282)
* Improve loc coverage by removing dead paths caused by bad type checks and add some tests for other paths

* removed exception for https://github.com/microsoft/playwright/issues/5894 that was fixed in 2022 with webkit 16.0
2025-04-24 13:54:43 -06:00
MichaelWest22
21dc121fce
handle removing request lock on errors (#3284)
* handle removing request lock on errors

* Fixed non function verifyUrl tests and added tests for the double requests this PR fixes
2025-04-24 13:53:14 -06:00
Shawn Duncan
0da03839ce
Create SECURITY.md (#3288)
* Create SECURITY.md

* Update SECURITY.md

Remove boiler plate text
2025-04-24 13:41:47 -06:00
Ajani Bilby
86893ebf4c
Docs: Update Link (#3281)
use a permalink
2025-04-21 09:11:55 +02:00
Yawar Amin
4d16626cf4
Adjust examples (#3280)
Autofocus when editing, and update text to match example code.
2025-04-20 10:52:08 +02:00
Simon Hartley
bc7a6b8c55
Documentation update for events (#3279) 2025-04-20 10:49:26 +02:00
Carson Gross
63016891a6 Merge branch 'master' into dev 2025-04-17 17:58:26 -06:00
Carson Gross
f8b71843da Merge remote-tracking branch 'origin/dev' into dev 2025-04-17 17:58:04 -06:00
MichaelWest22
24a0106f76
Update testing framework to web-test-runner and improve code coverage (#3273)
* Fix old npm dependencies

* implement web-test-runner tests for headless alongside Mocha browser tests

* Increase test and code coverage

* update to 100% coverage and impove eslint

* Update testing Doco

* revert all htmx changes and updates/disable tests needed

* fix browser mocha test

* Default testing to use playwrite only instead of puppeter

* playwright install fix

* Imporve test summary reporting

* flatten false looks closer to original
2025-04-17 17:55:43 -06:00
Johannes Neumeier
e8f5990c1b
Mention hx-include does not match disabled fields. Fixes #3053 (#3274) 2025-04-17 07:55:11 +02:00
Simon Hartley
6836e87a6c
Docs - add sections and search filtering for community extensions (#3260)
Docs - add sections and search filtering for community extensions

Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-07 22:24:39 -05:00
Pierre Chapuis
3830fa7b2c
fix customized confirmation example (#3262) 2025-04-05 10:25:47 +02:00
FumingPower
0578564a25
docs: Add dynamic-url to community extensions list (#3259)
* docs: Add dynamic-url to community extensions list

* docs: applied minor corrections
2025-04-03 07:56:39 +02:00
Simon Hartley
b1c1a1ba23
Documentation update for hx-swap (#3261) 2025-04-02 10:29:14 -06:00
Simon Hartley
aa3dbf0c50
Documentation update for debug extension (#3255) 2025-03-28 08:03:47 +01:00
librasteve
838f49d977
Adding Raku / Cro Templates to Fragments list (#3253)
17:31]librasteve: hello, we recently added fragment to the Raku Cro Templates (as inspired by HTMX LOB) and I thought you may like to add to the list of fragments at https://htmx.org/essays/template-fragments/, something like Raku / Cro Template (https://github.com/croservices/cro-website/blob/main/docs/reference/cro-webapp-template-syntax.md#fragments) ~librasteve
[18:15]1cg: Hi there
[18:16]1cg: That looks great, yes, can you create a PR here w/ a link to that page: https://github.com/bigskysoftware/htmx/blob/master/www/content/essays/template-fragments.md
[18:16]1cg: and then send me a link to the PR and I'll integrate it
[19:17]librasteve: cool - will do
2025-03-28 08:00:03 +01:00
Carson Gross
a2681e3ee2 remove deco sponsorship 2025-03-27 10:43:26 -06:00
Carson Gross
f42117628c fix all the sponsor images 2025-03-25 21:43:48 -06:00
Carson Gross
15085704f2 Merge remote-tracking branch 'origin/master' 2025-03-25 21:33:32 -06:00
Carson Gross
0d7434f998 fix jetbrains logo 2025-03-25 21:33:23 -06:00
Joundill
d1aa89192f
Documentation update for hx-get (#3251)
Update hx-get.md

Clarified notes on hx-get params
2025-03-25 08:44:22 +01:00
Simon Hartley
a3ac341994
Documentation update for hx-select-oob (#3250)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-03-25 08:42:51 +01:00
Simon Hartley
abaf3de237
Documentation update for include-vals extension (#3247)
Documentation update for outdated extension
2025-03-25 08:38:19 +01:00
Simon Hartley
1b4e778ba6
Documentation improvements for idiomorph extension (#3249) 2025-03-25 08:36:33 +01:00
Simon Hartley
fec926d354
Documentation update for hx-trigger (#3246) 2025-03-24 08:08:41 +01:00
Simon Hartley
f8f7466d5c
Fix broken link in SSE extension docs (#3241) 2025-03-19 07:34:20 +01:00
Sebastian Davids
1d1a3ceeee
Fix JSDoc of getRespCodeTarget (#3235)
Signed-off-by: Sebastian Davids <sdavids@gmx.de>
2025-03-17 08:06:06 +01:00