carson
16765b39bf
support the on load
syntax in hyperscript
2021-01-03 09:15:43 -07:00
carson
2ead82eb78
Merge remote-tracking branch 'origin/dev' into dev
2021-01-03 08:04:35 -07:00
carson
6939290b8f
support closest
syntax in hx-indicator
2021-01-03 08:04:26 -07:00
1cg
953b325a6d
Merge pull request #300 from benpate/pullrequest-preload
...
Extension: Preload Updates
🔥 🔥 🔥
2021-01-02 18:11:02 -07:00
Ben Pate
8aa4f74745
Change Default Configuration
...
- allow inheritance
- change default trigger to mousedown
- move configuration event into `preload` attribute
- remove wait option (delay hardcoded to 100ms)
- update manual test cases
2021-01-02 17:55:36 -07:00
Ben Pate
3022030505
Add test cases
...
Manual test cases for now.
2021-01-01 21:54:49 -07:00
carson
afa6658648
test case for equality expression in conditional
2021-01-01 20:09:43 -07:00
carson
41c732d880
Merge remote-tracking branch 'origin/dev' into dev
2021-01-01 18:52:24 -07:00
carson
79038d62e3
support from
clause for triggers
...
also fixed pretty ugly bugs when parsing multple trigger definitions
2021-01-01 18:52:15 -07:00
1cg
a059afb2ef
Merge pull request #273 from benpate/pullrequest-preload
...
Extension: Preload Links
2021-01-01 17:02:49 -07:00
1cg
522b69c3b7
Merge pull request #287 from jvosloo/patch-1
...
Extend path-deps extension to handle explicit path refreshes
2021-01-01 16:53:03 -07:00
Johan Vosloo
b46e8ab10f
Added tests
2020-12-30 14:49:21 +01:00
Ben Pate
d928c7ca38
Improved error handling
...
- Catches rapid mouse movements better
- Better test cases
2020-12-29 22:12:47 -07:00
Ben Pate
294885454b
Style updates
...
- use built-in htmx.parseInterval function instead of custom one
- smarter handling of mouse movement inside complex objects
- more descriptive values in preloadState
- also, semicolons
2020-12-29 20:39:07 -07:00
Ben Pate
a327b0078e
Unit tests working
...
- fixed issues with Chai unit tests
- removed old function
2020-12-29 19:57:05 -07:00
Ben Pate
354be034d2
Updating ParseInterval
...
- add tests
- try replacement function
2020-12-29 19:47:17 -07:00
Ben Pate
d0f19754ad
Updates
...
- Changed API to look for event names and wait durations.
- Changed default triggers to mousedown (0ms wait time)
- Added default wait on mouseover events (100ms)
- Now using htmx.ajax for HX-GET requests. This makes sure headers match the actual HTTP requestswhen they're made
- Updated manual tests
- More tests and documentation to come
2020-12-29 16:28:35 -07:00
1cg
cc092ed9a0
Merge branch 'dev' into bencroker-patch-2
2020-12-29 10:08:34 -07:00
Matthew Molloy
e01c7f77e4
skip validation when novalidate or form submitted indirectly
2020-12-27 12:59:48 +07:00
carson
5fd24a7096
support the hx-preserve
attribute
...
fixes https://github.com/bigskysoftware/htmx/issues/284
2020-12-24 06:36:15 -07:00
Ben Croker
0f226d29dd
Added test
2020-12-19 10:18:42 +01:00
Ben Pate
3551528d96
Merge branch 'dev' into pullrequest-ignore-extensions
2020-12-14 13:43:52 -07:00
Ben Pate
84ac44b591
Add "ignore:" command for extensions
2020-12-14 13:26:34 -07:00
carson
230e2f65df
support a CSS selector in the hx-swap-oob
attributes
2020-12-11 15:33:24 -07:00
carson
b96e5e771e
allow hx-swap-oob
to be at any level in returned content
2020-12-11 15:00:44 -07:00
carson
b1729b2b85
improve API by taking string selectors in place of elements
2020-12-04 15:06:02 -07:00
carson
564d4eb651
holy smokes this test won't die
2020-12-04 10:08:01 -07:00
carson
c9ab48d9d5
more 1.0.1 prep
2020-12-04 10:03:59 -07:00
carson
58b36a6fb8
fix test - I guess all that matters is that the attribute is on the element :/
2020-12-04 09:56:28 -07:00
carson
fda4957d65
handle multiple='false' case
2020-11-29 09:58:10 -07:00
Ben Weller
7576e21ab1
handle multi-select when "multiple" attr is present w/o value
2020-11-25 15:40:57 -06:00
carson
d71e7bd4e9
accept selector strings as first argument to on()
, off()
, etc.
...
hyperscript example for file upload
2020-11-25 06:24:46 -07:00
carson
85b5d04faa
file upload progress, with test
2020-11-24 14:24:01 -07:00
carson
13366ac089
fix https://github.com/bigskysoftware/htmx/issues/239
...
use title node innerHTML if possible so that HTML escape sequences are respected.
2020-11-18 17:23:52 -07:00
1cg
fa1db3b290
Merge pull request #225 from ChexWarrior/224-unlock-request-after-xhr-abort
...
End request lock when xmlHttpRequest is aborted
awesome, thank you!
2020-11-15 19:22:20 -07:00
Andrew Lehman
661f43f5cf
Update title and test label
2020-11-15 21:11:10 -05:00
Andrew Lehman
cc13cf721c
Add test to list of manual tests
2020-11-15 21:09:07 -05:00
Andrew Lehman
f9d0ccb3ed
Add minimal test to ensure requests aren't locked
2020-11-15 21:08:31 -05:00
carson
d464b91d1e
Add braces test
2020-11-15 17:56:23 -07:00
carson
5acd554a5c
Two-fer:
...
* Implement `hx-vals` which is a JSON-only (and therefore safer) version of `hx-vars`
* Port all internal evals to use `Function` instead
May fix https://github.com/bigskysoftware/htmx/issues/213
2020-11-15 17:54:54 -07:00
carson
2209c4bf6f
switch semantics: hx-vars overrides any input
2020-11-15 06:23:04 -07:00
carson
0f72543171
Update title if a title tag is found in the response content
...
fixes https://github.com/bigskysoftware/htmx/issues/231
2020-11-15 06:04:31 -07:00
carson
e0b5b52979
handle html parsing when script tag starts content
...
fixes https://github.com/bigskysoftware/htmx/issues/228
2020-11-11 10:04:01 -07:00
Ben Croker
28d47e91d5
Added test child script nodes evaluate when first child
2020-11-09 10:49:01 +01:00
carson
f7617a4653
do not fire requests when element is no longer in DOM
...
fixes https://github.com/bigskysoftware/htmx/issues/222
2020-11-05 08:39:33 -07:00
carson
c6c472bbf7
0.3.0 release
2020-10-27 16:58:52 -06:00
carson
751ad91755
basic test for logAll()
2020-10-19 09:52:18 -06:00
carson
d67634e678
test scrolledIntoView
2020-10-19 09:49:55 -06:00
carson
f536512e45
script testing, evaluate script tag when type is absent
2020-10-19 09:33:47 -06:00
carson
1cb756c05e
add test for SSE swapping
2020-10-19 08:20:16 -06:00