MichaelWest22
24a0106f76
Update testing framework to web-test-runner and improve code coverage ( #3273 )
...
* Fix old npm dependencies
* implement web-test-runner tests for headless alongside Mocha browser tests
* Increase test and code coverage
* update to 100% coverage and impove eslint
* Update testing Doco
* revert all htmx changes and updates/disable tests needed
* fix browser mocha test
* Default testing to use playwrite only instead of puppeter
* playwright install fix
* Imporve test summary reporting
* flatten false looks closer to original
2025-04-17 17:55:43 -06:00
Geoffrey B. Eisenbarth
9fcb5c5c32
Enforce no-op on submit buttons with formmethod=dialog. ( #3075 )
...
* Enforce no-op on submit buttons with formmethod=dialog.
* Properly resolve referenced forms. (#3094 )
* Properly resolve referenced forms.
* Clarify variable.
* Cast elt to avoid TS exceptions.
* Refactor for JSDoc.
* Clarify shouldCancel.
* Remove complicated JSDoc in favor of ts-ignore.
* More coverage for button scenarios.
* Use properties instead of matching.
* Mention reset button change.
* Mention formmethod=dialog change.
2025-01-09 15:22:36 -07:00
Geoffrey B. Eisenbarth
f46989b24a
Properly resolve referenced forms. ( #3094 )
...
* Properly resolve referenced forms.
* Clarify variable.
* Cast elt to avoid TS exceptions.
* Refactor for JSDoc.
* Clarify shouldCancel.
* Remove complicated JSDoc in favor of ts-ignore.
* More coverage for button scenarios.
* Use properties instead of matching.
* Mention reset button change.
2025-01-09 11:23:32 -07:00
ehenighan
27fc37ce50
Issue #2676 - Tests for v2 to prevent regression of issue from v1 ( #2829 )
...
* Tests for v2 to prevent regression of issue from v1
* Linting
---------
Co-authored-by: Ed Henighan <ed.henighan@adi-uk.com>
2024-08-19 21:09:42 +02:00
Carson Gross
cd4e6c62cf
clean up bad IE references
2024-03-24 14:39:19 -06:00
Carson Gross
d92f165923
lint
2024-03-21 17:35:17 -06:00
Carson Gross
038e1a78f0
Merge branch 'v2.0v2.0' into dev
...
# Conflicts:
# dist/htmx.js
# dist/htmx.min.js
# dist/htmx.min.js.gz
# src/htmx.js
# test/core/ajax.js
# test/core/regressions.js
# www/static/src/htmx.js
# www/themes/htmx-theme/static/js/htmx.js
2024-03-21 17:28:09 -06:00
Vincent
e64238dba3
Fix IE11 incompatibilities ( #2408 )
2024-03-21 16:06:44 -06:00
Alexander Petros
f4f35aec76
Format the rest of tests
2023-12-21 13:26:41 -05:00
Alexander Petros
290a78f6b0
Fix delete statement in two tests
2023-12-21 13:25:46 -05:00
Vincent
200c503f31
Removed IE-specific tests ( #2039 )
2023-11-24 11:30:11 -05:00
RBRi
31908e4839
Add missing '})' in core ajax tests ( #1998 )
2023-11-14 15:27:50 -05:00
Eric Kwoka
bdcb040a2f
Fix stale form references ( #1820 )
...
* 🐛 ensures form reference is accurate
* ✅ Adds test
* 🐛 Fixes null checks
* Revert www updates
This reverts commit d2d14056e2635688fdcb0e6abe572034f77c0bef.
* Revert www updates
This reverts commit 3de585e02997a7877f47ef84f6c2f1a5fcc91ac3.
* ♻️ Refactors code
* ✅ Passes tests
2023-10-31 16:32:58 -06:00
EliasPrescott
0718daa3ac
Fix: form submission of email inputs with multiple
attribute ( #1917 )
...
fixing multiple email input values
2023-10-26 11:53:58 -06:00
Sam Dudley
355a4fad65
Ignore formmethod when value is "dialog" ( #1867 )
...
Fixes #1866
2023-10-06 22:04:02 -06:00
Vincent
bb5413dfd2
[Tests] Fix test pipeline timing issues ( #1818 )
...
Fix test pipeline timing issues
2023-09-21 15:43:49 -06:00
Vincent
1f55266c47
[Test] Add a test to ensure inputs outside form with form
attribute work properly ( #1815 )
...
Add a test to ensure inputs external to form work properly
2023-09-21 12:08:51 -06:00
Vincent
55c30b5607
Make htmx IE11 compatible again + tests IE11 compatible ( #1687 )
...
* Make htmx IE11 compatible again + tests IE11 compatible
* IE11 compatible handmade socket mock for ws-ext tests
* Fallback when xpath isn't supported, hx-on wildcard now working on IE11
* Merge remote-tracking branch 'upstream/relative-url-in-hx-boost' into ie11-compatibility
2023-09-06 09:55:18 -06:00
Vincent
88a57cbc39
[Bugfix] Fix submit buttons/inputs handling ( #1559 )
...
* Fix submit buttons/inputs handling
* Removed useless concatenation
* Don't initNode links and forms that shouldn't be initialized
* Removed selectors filtering to alleviate PR
* Add @1cg 's addValueToValues function to factor code
* Use formValues variable for clicked button's value including
2023-07-25 12:55:22 -06:00
Viktor Szépe
b085d89459
Fix assorted comment typos ( #1590 )
2023-07-17 11:36:04 -04:00
Nicolas Appriou
1e1b7cf94a
escape colons in querySelector ( #1314 )
...
thank you!
2023-04-01 17:36:15 -06:00
Carson Gross
704739d1f0
fix https://github.com/bigskysoftware/htmx/issues/1236
...
handle single quotes in ids properly by escaping them in selectors
2023-02-16 11:11:50 -07:00
carson
dd34d9d218
more release cleanup
2021-11-21 06:44:20 -07:00
carson
e67e5ba41b
bump version & disambiguate non-swaps from errors
2021-10-30 08:19:54 -06:00
carson
60a6717994
support <script src='...'></script>
tags
2021-09-28 05:17:20 -06:00
carson
6821e366a8
remove redundant test
2021-09-27 07:55:54 -06:00
carson
14e87fc623
Merge remote-tracking branch 'origin/dev' into dev
2021-09-27 07:50:41 -06:00
carson
9254d7fa5a
extend htmx:beforeSwap
event to allow much more flexible handling of response codes and content swapping
2021-09-27 07:50:31 -06:00
Ben Croker
700bc3ae58
Improved wording of tests
2021-09-06 22:50:34 +02:00
Ben Croker
21ec1094ec
Add better title tests
2021-09-05 14:08:44 +02:00
carson
49405727d5
script tags eval in the global scope
2021-05-25 09:11:37 -06:00
carson
bdefbd4fec
title tags must come before any svg tags to update the title
...
fixes https://github.com/bigskysoftware/htmx/issues/459
2021-05-17 11:39:22 -06:00
carson
835436a99b
Multiple trigger issue - fix https://github.com/bigskysoftware/htmx/issues/392 and https://github.com/bigskysoftware/htmx/issues/390
...
Mark handling by element, rather than by event
introduce `consume` keyword on trigger to allow for preventing it from bubbling to parent
2021-02-27 20:01:39 -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
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
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
f536512e45
script testing, evaluate script tag when type is absent
2020-10-19 09:33:47 -06:00
carson
77dc60dff7
IE 11 cleanup
2020-09-30 13:02:16 -06:00
carson
6900ab8278
don't set Content-Type in the presence of hx-encoding
2020-09-29 11:28:21 -06:00
carson
b401f54c54
undo temporary removal of clearing
2020-09-29 10:47:16 -06:00
carson
7a7401aa97
fixes for file upload
...
- proper content type header
- fix bug in FormData generation
test for both
2020-09-29 10:39:34 -06:00
carson
7b9e751960
first pass at file upload and supporting multipart/form-data
...
also fixed an obscure bug in the way inputs were collected w/ multiple values
2020-09-28 18:47:23 -06:00