| Commit message (Collapse) | Author | Age |
|
|
|
| |
bigskysoftware/htmx-extensions#10
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
* feat: add textContent swap style
* add documentation
---------
Co-authored-by: pbt <pb.to@icloud.com>
|
|
|
|
|
|
|
|
|
| |
* JSdoc in htmx.js + generated TypeScript definition
* Tsc trick to avoid inlining functions and reduce diff
* Replace Queryable with ParentNode
* Simplify getRawAttribute type check
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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 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
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
# 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
|
| |\
| | |
| | |
| | |
| | | |
# Conflicts:
# www/content/docs.md
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Exclude form elements within disabled fieldsets
* add test for disabled fieldsets
* cleanup
|
| | |
| | |
| | |
| | |
| | | |
Revert "Fix for race condition in readystate detection (#1972)"
This reverts commit 78a9ecf17079fcdfa3d674700d8338b60f14a058.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
# Conflicts:
# src/htmx.js
|
| | | | |
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
# Conflicts:
# src/htmx.js
# www/content/docs.md
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
We're not enforcing it right now, but it's there if you want it.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This also includes a massive reformat of the htmx code, since the
indenting was changed. I used standardJS for this.
|
| | |\| | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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.
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Fix https://github.com/bigskysoftware/htmx/issues/2018
|
| | |\ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
# Conflicts:
# src/htmx.js
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* 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
|
| | | |\| | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|