MichaelWest22
83a1449a89
Add pushUrl option to ajax api and improve hx-location push url handling ( #3404 )
...
* add pushUrl option
* Remove duplicate save to history
* Improve pushUrl and hx-location url handling
* Add replace option to api as well
* minor wording change
* push headers support true
* roll back anchor support for header base paths except for true case
* add selectOOB and simplify ajax helper
* Remove refactor
* reverse order of push/replace
---------
Co-authored-by: MichaelWest22 <michael.west@docuvera.com >
2025-10-17 13:15:43 -06:00
MichaelWest22
dc71b317d0
throw targetError correctly when target invalid during retarget ( #3335 )
...
* throw targetError correctly when target invalid during retarget
* fix missing jsdoc return
2025-06-20 14:51:12 -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
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
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
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
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
Ben Croker
a44a1b3c34
Add ability to trigger an event on another element using HX-Trigger response header ( #2768 )
...
* Update htmx.js
* Update htmx.js
* Update headers.js
* Update htmx.js
* Update htmx.js
* Update htmx.js
* Update hx-trigger.md
2024-07-29 10:33:24 -06:00
Vincent
23d473291d
Updated mocha, tests now work with node 20 ( #2122 )
...
* Updated mocha, tests now work with node 20
* Update package-lock.json
* Enable Node CI for v2.0v2.0 branch (#2123 )
Run tests for v2.0v2.0 branch too
* Bump CI's node version to 20.x
2023-12-21 16:54:02 -05:00
Alexander Petros
4b890ce72d
Run linter on the tests too
2023-12-21 13:22:10 -05:00
Sascha Woo
b89e4f4bf6
HX-Request and HX-Current-URL headers are missing in the request to restore from history ( #2013 )
2023-11-30 15:17:39 -07:00
Vincent
91d06309dc
[New feature] Comma separated list syntax for HX-Trigger response header ( #1479 )
...
* Comma separated list syntax for HX-Trigger response header
* Fix wording
2023-07-18 13:10:43 -06:00
RoToRa
3521c3c059
Implementation of HX-Reselect ( #1385 )
...
* HX-Reselect #1040
* HX-Reselect documentation
* HX-Reselect: Fix wrong variable name
2023-07-14 15:21:21 -05:00
mayowa
9eef783011
Implement HX-Reswap ( #949 )
...
* Document optional delay parameter for addClass, removeClass, remove
* Implement HX-Reswap (resolves #933 )
2022-06-29 15:37:28 -06:00
Ben Beecher
d51d8cb74c
Adding support for client side redirects - HX-Location ( #832 )
...
* Adding support for client side boosted redirects
* First pass at hx-boost-redirect
* Fixing some small documentation issues
* Rename boost-redirect to Location
2022-05-27 11:39:23 -06:00
carson
2d9c49a8a1
support an HX-Retarget header to retarget the content to another element
2021-11-12 16:58:27 -07:00
carson
1fca7dbb70
dispatch events by HX-Trigger-After-* on body if the element is no long in the DOM
...
fixes https://github.com/bigskysoftware/htmx/issues/418
2021-03-25 12:42:33 -06:00
carson
6503e29832
add regression test for https://github.com/bigskysoftware/htmx/issues/427
2021-03-20 19:58:47 -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
Robert Schroll
1060c9e88a
Avoid throwing errors when parsing malformed JSON
...
Instead, treat it as if no value was present.
2020-06-08 00:55:09 -07:00
acnebs
d01025823e
Rename custom HTTP headers to no longer start with X-
...
This convention is deprecated, as per this RFC from the IETF:
https://tools.ietf.org/html/rfc6648
2020-05-28 01:29:51 +01:00
carson
0a2f717f10
fix up final stuff from rename
2020-05-17 05:59:13 -07:00
carson
3aa8c64754
le big re-rename
2020-05-17 05:22:19 -07:00
carson
36bd9a25ca
event testing
2020-05-13 13:57:52 -07:00
carson
ba5cb7105a
organize tests
2020-05-13 09:12:31 -07:00