49 Commits

Author SHA1 Message Date
MichaelWest22
508e332544
Standardize history restore functions to use proper htmx swap functions (#3306)
* Improve history support and events

* Improve history event overrides

* Improve history support and events

* Improve history event overrides

* Update Documentation of new event changes

* Add event testing for updated events

* update event doco and rename to historyElt to be consistent

* Improve history support and events

* Improve history event overrides

* Update Documentation of new event changes

* Add event testing for updated events

* update event doco and rename to historyElt to be consistent

* Fix loc coverage test coverage

* Standardize history restore functions to use proper htmx swap functions

* Add test for hx-history-elt attribute

* Fix broken merge conflict resolution
2025-06-16 16:53:57 -06:00
Carson Gross
646c8583be Merge remote-tracking branch 'origin/dev' into dev 2025-06-02 10:56:11 -06: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
jdocksey
103c72ed74
Documentation link added (#3211) 2025-02-25 09:08:02 +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
Sascha Woo
df73ff2a7a
Add missing disableInheritance documentation (#3017) 2024-11-13 16:05:04 +01:00
Carson Gross
5b2fe2c19c move general extension docs back to htmx.org/extensions and include core extension documentation on the site 2024-10-03 18:52:59 -06:00
Brooke Kuhlmann
44c4de41cc
Added htmx before transition reference link (#2929)
This is missing from the reference page but properly documented on the events page. This simply links the two together so anyone can quickly jump between the two.

Milestone: patch
2024-09-25 09:29:56 +02:00
Ben Croker
02aa8fd718
Fix docs for htmx.config.scrollBehavior (#2918)
* Update docs.md

* Update reference.md

* Update api.md

* Fix links

---------

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2024-09-19 09:33:37 +02:00
MichaelWest22
0023cd85f0
[Documentation] Config default update for methodsThatUseUrlParams (#2911)
Config default update
2024-09-16 10:09:38 +02:00
MichaelWest22
6ce6a1a77b
Documentation 3xx redirects can't send headers (#2904)
* 3xx redirects can't send headers

* fix response-headers links
2024-09-15 09:29:39 +02:00
M Somerville
13b44b7897
Fix inlineStyleNonce typo in reference (#2785) 2024-08-03 19:45:37 +02:00
Ben Croker
1c1e4faab9
Fix default scrollBehavior value in docs (#2729)
* Update reference.md

* Update htmx.js

* Update reference.md
2024-07-16 08:18:11 +02:00
Vincent
edac767fd9
Fix selfRequestsOnly doc (defaults to true in htmx 2) #2546 #2669 (#2674) 2024-06-27 13:36:31 -06:00
Ben Croker
ae56f211af
Docs: Fix reference link to hx-inherit (#2625)
* Update reference.md

* Update reference.md
2024-06-18 11:46:20 -06:00
Carson Gross
20b42aaf88 Merge branch 'master' into dev
# Conflicts:
#	src/htmx.d.ts
#	src/htmx.js
#	test/core/security.js
#	www/content/docs.md
2024-05-16 12:50:13 -06:00
Marcos Pereira
ab458e7143
feat: Add inlineSlyeNonce configuration (#2542) 2024-05-15 12:06:40 -06:00
lookbusy1344
f9591c9790
More explicit explanation of htmx.config.getCacheBusterParam (#2376)
* More explicit explanation of htmx.config.getCacheBusterParam

* Small formatting fixes
2024-04-25 12:36:50 -04:00
Carson Gross
45dd5f168d move all references to extensions over to the new site/repo 2024-03-26 16:37:26 -06:00
Carson Gross
30a9941b61 clean our references to extensions, link to the new extensions website 2024-03-26 16:00:15 -06:00
Joe Taber
520502121e
Add config option to ignore nested oob-swaps instead of processing them (#1235)
* Add config option to ignore nested oob swaps

* Fix oobElement root check

* Save config between tests; repeat some tests with different configs

* Add tests for oob-swaps in html, body tags

* Don't unnecessarily change const to var
2024-03-11 12:32:30 -04:00
Carson Gross
36c01420d6 Merge branch 'master' into v2.0v2.0 2024-02-09 09:41:49 -07:00
Nathaniel Sabanski
fa7223391c
Docs: Reference page. Shortened, clarity. (#2282)
* Docs: Reference page. Shortened, clarity.

* Docs: Reference. Improve hx-select-oob vs hx-swap-oob description.
2024-02-07 16:33:39 -05:00
Denis Palashevskii
7fe27dd275
Refactor and expose swap in public API (#2191)
* refactor and expose swapping as a single method

* fixes after rebasing on latest 2.0

* fix optional parameters for swapping

* add `fullSwap` to internal API

* swap refactor polishing

* make linter happy
2024-01-19 16:31:34 -07:00
Carson Gross
ff96b78e77 move to template parsing by default (prep for head support) 2023-12-27 14:42:14 -07:00
Carson Gross
42668c6df7 Merge branch 'v2.0v2.0' into disable-inheritance
# Conflicts:
#	src/htmx.js
#	www/content/docs.md
2023-12-24 14:55:11 -07:00
Vincent
4057f9c465
Trigger specs cache indentation fix + documentation & tests (#2094)
* Fix parseAndCacheTrigger indentation as discussed in #1540

https://github.com/bigskysoftware/htmx/pull/1540#issuecomment-1834651800

* Trigger specs cache documentation + tests
2023-12-14 11:44:11 -07:00
Carson Gross
291cc1ee7d docs for inheritance disabling 2023-12-13 17:27:55 -07:00
Carson Gross
3be4202e5e add support for dashes in hx-on* attributes 2023-12-07 15:15:10 -07:00
Joe Taber
f716383716
Add configuration options list to reference docs (#1927)
Could not figure out how to import directly from docs.md with zola.
2023-11-10 21:31:29 -05:00
Thomas de Queiroz Barros
590fddaf04
Improve request/response documentation in docs.md (#1839)
* docs+reference: merge Response Headers docs

* docs+reference: merge Request Headers docs

* docs+reference: use true as strings
2023-10-03 16:06:29 -04:00
Carson Gross
a5fd1b7081 make singular to make more consistent w/ other attributes 2023-09-21 16:57:28 -06:00
Carson Gross
4189eeaa0c Merge branch 'master' into dev
# Conflicts:
#	package-lock.json
#	package.json
2023-09-20 09:15:53 -06:00
gbourant
66023f21f9
Fix typo in HX-Refresh documentation (#1798) 2023-09-18 09:08:55 +01:00
Carson Gross
af0dc9c352 add hx-disabled-elts functionality 2023-09-14 13:20:46 -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
Carson Gross
4cb85e9856 Merge remote-tracking branch 'origin/dev' into dev 2023-07-25 12:56:19 -06:00
Viktor Szépe
0a471dc4fb
Fix typos in www/ (#1579) 2023-07-17 10:26:27 -04:00
Vincent
249a197d57
Fix beforeProcessNode link (#1562) 2023-07-17 00:56:53 -04: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
Antonio Pagano
e626e2aea6
docs: updating attribute table to use beforeend instead of beforeEnd (#1427)
* docs: updating attribute table to use beforeend instead of beforeEnd

* docs: updating jetbrains attributes
2023-05-23 09:47:38 -05:00
maetthew
9bd3e3b1e3
Fix missing a word in the reference (#1422) 2023-05-23 09:44:16 -05:00
Michito
73f6187eb5
Fix a typo in the description of hx-confirm (#1446)
Co-authored-by: mic4ael <email>
2023-05-23 09:42:33 -05:00
Nathaniel Sabanski
360331d25a
hx-on: Added to Reference page, and revised docs: readability, wordiness. (#1365)
* hx-on: Added to Reference page, and revised docs, removed words.

* hx-on: Made first sample a <div> to showcase versatility.

* Minor revision.

* Minor revision.

* Fixed broken Locality of Behavior link.
2023-04-13 12:17:13 -06:00
Carson Gross
926cfb02f0 fixes from master 2023-04-11 10:07:27 -06:00
Daniel J. Summers
b0088a602f Incorporate doc changes in dev branch 2023-04-05 22:24:23 -04:00
Daniel J. Summers
f690d92834 Replace www directory 2023-03-18 11:29:38 -04:00