summaryrefslogtreecommitdiffstatshomepage
path: root/src
Commit message (Collapse)AuthorAge
* Merge branch 'v2.0v2.0' into disable-inheritanceCarson Gross2023-12-13
|\ | | | | | | | | # Conflicts: # src/htmx.js
| * Merge branch 'dev' into v2.0v2.0Carson Gross2023-12-13
| |\
| | * remove some `let`s that snuck inCarson Gross2023-12-13
| | |
| * | remove legacy `hx-on=` syntaxCarson Gross2023-12-13
| | |
| * | Merge branch 'dev' into v2.0v2.0Carson Gross2023-12-13
| |\|
| | * add support for dashes in hx-on* attributesCarson Gross2023-12-07
| | |
| | * Improve performance of lib during initialization phase (#2045)Viliam Mihálik2023-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * perf: prevent initialization of all links on page * perf: changed loop to queryselector * removed spread operator * fixed selector * use only one query to retrieve elements
| | * HX-Request and HX-Current-URL headers are missing in the request to restore ↵Sascha Woo2023-11-30
| | | | | | | | | | | | from history (#2013)
| | * fix src/htmx.js(3842,25): error TS2769: No overload matches this call. (#2038)Yaroslav Lapin2023-11-30
| | |
| | * Use faster `regexp.test` over `string.match` for testing against regex (#2053)Jonathan Rietveld2023-11-30
| | |
| | * Fix wildcard hx-on search's root node (#2060)Vincent2023-11-30
| | | | | | | | | Thank you @Telroshan!
| | * bump version for next releaseCarson Gross2023-11-30
| | |
| | * fix incorrect config types (#2046)JA2023-11-27
| | |
| | * chore: add missing options to HtmxConfig type (#2026)JA2023-11-24
| | | | | | | | | chore: add missing types to HtmxConfig
| * | flip defaults for 2.0Carson Gross2023-11-21
| |/
| * Fix for race condition in readystate detection (#1972)ahollandECS2023-11-20
| | | | | | | | | | | | | | | | | | * trying to fix readystate race condition * es6 to es5 * serialized intitialization routines * encapsulating ready function call
| * Fix relative resource URLs for boosted links (#1960)Dan Palmer2023-11-19
| | | | | | Fix relative URLs
| * bump for next versionCarson Gross2023-11-16
| |
| * Fix WS sendImmediately (#1949)matiboy2023-11-16
| | | | | | | | | | | | | | | | | | | | | | * Tests at current state of the code * Currently failing case (actual issue) * Fix issue --------- Co-authored-by: mat <matt@techspace.asia>
| * fix indicator styles flash (#1227)michaelperel2023-11-16
| | | | | | fix flash of indicator when first added to page
| * Allow CSS selectors with whitespace in `hx-trigger` (#1913)Jonathan Rietveld2023-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow CSS selectors with whitespace in `hx-trigger` Parsing of `hx-trigger` scans for whitespace, so if a CSS selector is used that contains whitespace, e.g. `form input`, a syntax error is raised. A workaround is implemented by allowing such a CSS selector to be wrapped in either curly braces or parentheses. * Add explanation whitespace in CSS selector to docs * Tests for CSS selectors containing whitespace * Use faster RegEx test, remove redundant variable declarations * Added Descendant Combinator support to `root` and `target` modifiers * Add missing semicolon * Tests for descendant combinators in `root` and `target` modifiers * Improve descendant combinator test coverage
| * Allow user to override Content-Type header (#1906)gbourant2023-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow user to override Content-Type header * reorder the code so it won't use userSetContentType variable * remove userSetContentType * clarification * remove unrelated changes --------- Co-authored-by: gbourant <root@gbourant.com>
| * Fix missing ignoreTitle property declaration in htmx.config (#1981)Vincent2023-11-16
| | | | | | | | | | * Fix missing ignoreTitle property declaration in htmx.config * Add ignoreTitle to htmx.d.ts
| * Add `select` option to htmx.ajax() (#1985)Jacob Scott2023-11-16
| | | | | | adds select to ajax api
| * Add config option scrollIntoViewOnBoost to typescript defs (#1986)Sascha Woo2023-11-16
| |
* | initial inheritance disabling workCarson Gross2023-11-14
|/
* prep 1.9.8 releaseCarson Gross2023-11-06
|
* Add new config options to typescript defs (#1970)Alexander Petros2023-11-06
| | | Fixed version of #1936
* Add config option to disable scroll into view for targets of boosted links ↵Sascha Woo2023-11-03
| | | | | and forms (#1459) Thank you @xhaggi
* IE11 compatibility fixes (#1948)Vincent2023-11-02
|
* prep 1.9.7 releaseCarson Gross2023-11-02
|
* Merge branch 'master' into devCarson Gross2023-11-02
|\
| * Fix Handlebars template rendering (#1836)André Rouél2023-10-06
| | | | | | | | | | Fix Handlebars template rendering (see #801 and #1801) Co-authored-by: russ4stall <russ@slashpine.tech>
* | Fix stale form references (#1820)Eric Kwoka2023-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * :bug: ensures form reference is accurate * :white_check_mark: Adds test * :bug: Fixes null checks * Revert www updates This reverts commit d2d14056e2635688fdcb0e6abe572034f77c0bef. * Revert www updates This reverts commit 3de585e02997a7877f47ef84f6c2f1a5fcc91ac3. * :recycle: Refactors code * :white_check_mark: Passes tests
* | Add hx-target-error attribute to response-targets extension (#1929)phpfan722023-10-31
| | | | | | | | | | | | | | | | | | * Update response-targets.js Add hx-target-error logic * Update response-targets.md add documentation and fix typo
* | Clear cache when historyCacheSize is set to 0 (#1222)Oli2023-10-26
| | | | | | | | | | | | | | | | | | * Update htmx.js * Purge history cache early if it should not exist --------- Co-authored-by: Alexander Oliver Mader <AlexanderOliver.Mader@bosch.com>
* | fix: prevent nodeData.onHandlers overwrite (#1894)Raphaël Piccolin2023-10-26
| | | | | | | | | | | | | | | | | | | | | | * fix: prevent nodeData.onHandlers() overwrite * fix: improved type safety * test: hx-on handler cleanup * style: wording * chore: extra line
* | Fix `confirmed` being ignored in htmx:confirm event (#1610)matiboy2023-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Current behavior testing Testing current library behavior * Test should remove correct handler * Add question in htmx:confirm event detail * Allow skipping window.confirm * Additional test without hx-confirm value * Wrap htmx.off in finally * More correct assertion in case of no calls to confirm * Remove erroneously added formatting * Remove erroneously added formatting * Documentation, fix loop --------- Co-authored-by: mat <matt@techspace.asia>
* | Fix: Use getElementById instead of querySelector to work with all valid ↵Jyri-Matti Lähteenmäki2023-10-26
| | | | | | | | | | characters (#1902) responseInfo.pathInfo.anchor is assumed to be an ID here, so use getElementById instead of querySelector, which doesn't accept all valid characters (for example parentheses)
* | Fix websocket polling trigger (#1903)Denis Palashevskii2023-10-26
| | | | | | fix websocket polling trigger
* | Fix: form submission of email inputs with `multiple` attribute (#1917)EliasPrescott2023-10-26
| | | | | | fixing multiple email input values
* | [New feature] selector-less next and previous targets (#1478)Vincent2023-10-06
| | | | | | | | | | * nextElementSibling and previousElementSibling target selectors * Renamed nextElementSibling => next, previousElementSibling => previous
* | Add new event htmx:beforeHistoryUpdate (#1573)Sascha Woo2023-10-06
| | | | | | | | | | * Add missing documentation for htmx:replacedInHistory * Add new event htmx:beforeHistoryUpdate
* | Clear lastButtonClicked ref if it was removed from the DOM (#1785)Vincent2023-10-06
| | | | | | Fix #1749 clear lastButtonClicked ref if it was removed from the DOM
* | Ignore formmethod when value is "dialog" (#1867)Sam Dudley2023-10-06
|/ | | Fixes #1866
* make singular to make more consistent w/ other attributesCarson Gross2023-09-21
|
* Merge remote-tracking branch 'origin/dev' into devCarson Gross2023-09-21
|\
| * Add support for event cancellation (preventDefault) in extensions (#1456)Sascha Woo2023-09-21
| | | | | | ext: add support for event cancellation via preventDefault()
| * fix problem with styles at the start of the server content (#1768)Jordan Stewart2023-09-21
| | | | | | fix problem with styles at the start of the server content when navigating through history
| * Extend client-side-templates to handle XSLT transformations (#1210)Jyri-Matti Lähteenmäki2023-09-19
| | | | | | extend client-side-templates to handle XSLT transformations