summaryrefslogtreecommitdiffstatshomepage
path: root/src/htmx.js
Commit message (Collapse)AuthorAge
* expose overrideFormData in internal API, use it in ws.js for hx-vals processingws-fix-hx-valsDenis Palashevskii2024-03-19
| | | | bigskysoftware/htmx-extensions#10
* Add config option to ignore nested oob-swaps instead of processing them (#1235)Joe Taber2024-03-11
| | | | | | | | | | | * 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
* Change innerText note to reflect that we used textContentAlexander Petros2024-02-29
|
* Add textContent swap style (#2356)p.b2024-02-29
| | | | | | | | | * feat: add textContent swap style * add documentation --------- Co-authored-by: pbt <pb.to@icloud.com>
* JSdoc in htmx.js + generated TypeScript definition (#2336)Vincent2024-02-21
| | | | | | | | | * JSdoc in htmx.js + generated TypeScript definition * Tsc trick to avoid inlining functions and reduce diff * Replace Queryable with ParentNode * Simplify getRawAttribute type check
* alpha2v2.0.0-alpha2Carson Gross2024-02-09
|
* Lint codeVincent2024-02-04
|
* Support JSON.stringify & Object.assign on FormData proxyVincent2024-02-04
|
* painCarson Gross2024-01-25
|
* fix manual anchor testCarson Gross2024-01-25
|
* lmaoCarson Gross2024-01-25
|
* lintCarson Gross2024-01-25
|
* firefox fixesCarson Gross2024-01-25
|
* yeeshCarson Gross2024-01-25
|
* fix version and lintCarson Gross2024-01-23
|
* fix script tag double executionCarson Gross2024-01-23
|
* Merge remote-tracking branch 'origin/v2.0v2.0' into v2.0v2.0fix-script-tagsCarson Gross2024-01-23
|\
| * Migrate to FormData (#2226)Vincent2024-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | * use form data instead of plain objects [wip] * FomData fixes + some JSDoc. TODO prevent multiple inclusions * Linted code * Prevent double value inclusions --------- Co-authored-by: Deniz Akşimşek <deniz@denizaksimsek.com>
| * Refactor and expose `swap` in public API (#2191)Denis Palashevskii2024-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Run formatter on sourceAlexander Petros2024-01-18
| |
* | Merge branch 'dev' into v2.0v2.0Carson Gross2024-01-15
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | # Conflicts: # dist/ext/sse.js # dist/htmx.d.ts # dist/htmx.js # dist/htmx.min.js # dist/htmx.min.js.gz # src/htmx.js # test/core/parameters.js # www/content/docs.md
| * Merge branch 'master' into devCarson Gross2023-12-21
| |\ | | | | | | | | | | | | # Conflicts: # www/content/docs.md
| | * Exclude form elements within disabled fieldsets (#2012)flixcor2023-11-30
| | | | | | | | | | | | | | | | | | | | | * Exclude form elements within disabled fieldsets * add test for disabled fieldsets * cleanup
| | * Revert readystate PR (#2040)Alexander Petros2023-11-30
| | | | | | | | | | | | | | | Revert "Fix for race condition in readystate detection (#1972)" This reverts commit 78a9ecf17079fcdfa3d674700d8338b60f14a058.
* | | Increment version to 2.0aAlexander Petros2024-01-13
| | |
* | | docs + config of head handlinghead-supportCarson Gross2024-01-05
| | |
* | | fix testCarson Gross2024-01-05
| | |
* | | better namingCarson Gross2023-12-27
| | |
* | | restore old semantics w/ body returning its childrenCarson Gross2023-12-27
| | |
* | | move to template parsing by default (prep for head support)Carson Gross2023-12-27
| | |
* | | support `revealed` paired w/ other eventsCarson Gross2023-12-26
| | |
* | | reformatconfig-return-behavorCarson Gross2023-12-24
| | |
* | | add some docsCarson Gross2023-12-24
| | |
* | | fix up after mergeCarson Gross2023-12-24
| | |
* | | Merge branch 'v2.0v2.0' into config-return-behavorCarson Gross2023-12-24
|\ \ \ | | | | | | | | | | | | | | | | # Conflicts: # src/htmx.js
| * | | indentationCarson Gross2023-12-24
| | | |
| * | | Merge branch 'v2.0v2.0' into disable-inheritanceCarson Gross2023-12-24
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/htmx.js # www/content/docs.md
| | * | | Support encapsulating oob swap elements in templates in response (#2120)Vincent2023-12-21
| | | | |
| | * | | Add standardJS format scriptAlexander Petros2023-12-21
| | | | | | | | | | | | | | | | | | | | We're not enforcing it right now, but it's there if you want it.
| | * | | Use var at top-levelAlexander Petros2023-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is so that htmx can be acccessed from the window object. Not sure if that's a good thing, but we have historically supported it and we're not gonna stop now.
| | * | | Replace UMD with distribution scriptAlexander Petros2023-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | This also includes a massive reformat of the htmx code, since the indenting was changed. I used standardJS for this.
| | * | | Merge branch 'dev' into v2.0v2.0Carson Gross2023-12-20
| | |\| |
| | | * | slight renameCarson Gross2023-12-20
| | | | |
| | | * | Update parseInterval to handle "0" correctly (#1835)Thomas Cowart2023-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update parseInterval to handle "0" correctly When a parameter like "0ms" is passed in to parseInterval it gets parsed to 0. Previously this would result in a return value of "undefined" because 0 is falsy and thus the `return 0 || undefined` statements return undefined. The purpose of the form `parseFloat(str) || undefined` was to return "undefined" if parseFloat failed (parseFloat returns NaN, a falsy value, if it can't parse its argument). Unfortunately, as mentioned, parseFloat can also succeed and return a falsy value -- when the argument is "0" (or "0.0", etc.). So the new code, rather than depending on the falsiness of the result of parseFloat, explicitly checks for a NaN. * Adds some semicolons Adds some semicolons to parseInterval (and tests) for consistency. * Add one more parseInterval test for "0" Adds test test to make sure parseInterval works on "0". * Adds functional tests for every, swap, settle, throttle, and delay * Explcitly check that setTimeout values are > 0 These values come from user settings that are read from parseInterval, so they could be a number or undefined. If the value being checked is > 0 setTimeout will be called with some associated function. If the value is 0 or 'undefined' the associated function will be called immediately ('undefined' is not greater than 0). * Change '!== undefined' to '> 0' `pollInterval !== undefined` is a subtly different conditional than just `pollInterval` or `pollInterval > 0` (which are equivalent). Changes the conditional to `pollInterval > 0` so as to not change the behavior but also be more explicit in the test.
| | | * | rewrite the HX-Retarget header to use extended query selectors (#2017)Noa Aarts2023-12-20
| | | | |
| | | * | Improve head tag parsing on template fragments (#2024)Fernando Comunello2023-12-20
| | | | | | | | | | | | | | | Fix https://github.com/bigskysoftware/htmx/issues/2018
| | * | | Merge branch 'v2.0v2.0' into merge-2075Carson Gross2023-12-20
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/htmx.js
| | | * | | Remove legacy WS/SSE code (#2095)Denis Palashevskii2023-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apply updated patch with legacy WS/SSE removal * remove legace WS/SSE from the test server also * remove sse mention from getTriggerSpec() * clean up sse.js implementation after removal of hx-sse
| | | * | | Merge branch 'dev' into v2.0v2.0Carson Gross2023-12-14
| | | |\| |
| | | | * | Prevent references to nodes swapped out of the dom accumulating as detached ↵Mark Croxton2023-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elements in memory (#2091) * Prevent references to elements swapped out of the dom accumulating as detached nodes (memory leak). * Safely delete internal data when we tear down a node