MichaelWest22
408850a08e
Additional Code Coverage ( #3282 )
...
* Improve loc coverage by removing dead paths caused by bad type checks and add some tests for other paths
* removed exception for https://github.com/microsoft/playwright/issues/5894 that was fixed in 2022 with webkit 16.0
2025-04-24 13:54:43 -06:00
MichaelWest22
21dc121fce
handle removing request lock on errors ( #3284 )
...
* handle removing request lock on errors
* Fixed non function verifyUrl tests and added tests for the double requests this PR fixes
2025-04-24 13:53:14 -06:00
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
Sebastian Davids
1d1a3ceeee
Fix JSDoc of getRespCodeTarget ( #3235 )
...
Signed-off-by: Sebastian Davids <sdavids@gmx.de>
2025-03-17 08:06:06 +01: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
Carson Gross
db42b46218
2.0.4 release notes
2024-12-12 14:34:08 -07:00
Carson Gross
233bf01a4b
2.0.4 release notes
2024-12-12 14:33:31 -07:00
Carson Gross
1a80c283f5
2.0.4 release notes
2024-12-12 13:25:36 -07:00
Carson Gross
52db21955e
prep next release
2024-12-12 13:13:37 -07:00
Carson Gross
fb78106dc6
prep next release
2024-12-12 13:12:49 -07:00
Geoffrey B. Eisenbarth
cc2466b1f8
Cancel vanilla submits from <button[form]/>. ( #3072 )
2024-12-12 13:09:26 -07:00
Vincent
a331244923
Support multiple extended selectors for hx-include, hx-trigger from, and hx-disabled-elt ( #2902 )
...
* Initial suggestion (squashed)
Support multiple extended selectors for hx-include
Additional test for nested standard selector
Add @MichaelWest22 hx-disabled-elt multiple selector test
Add hx-trigger `from` test with multiple extended selectors
Simplify
Include #2915 fix
Update htmx.js
Split for readability
Don't apply global to previous selectors
Rewrite loop, restore global recursive call, minimize diff
Use break for better readability
Co-Authored-By: MichaelWest22 <12867972+MichaelWest22@users.noreply.github.com>
* Keep global as a first-position-only keyword
* Wrapped selector syntax
* Replace substring check by individual chars check
* Fix format
---------
Co-authored-by: MichaelWest22 <12867972+MichaelWest22@users.noreply.github.com>
2024-12-12 11:12:01 -07:00
Carson Gross
232667d2c6
fix https://github.com/bigskysoftware/htmx/issues/1788
...
boosted forms that issue a `GET` (and only a `GET`) and have no `action` attribute or an empty `action` attribute should clear the existing parameters of the current path when submitting lmao
2024-12-11 16:42:20 -07:00
Carson Gross
815c117088
comment out test that is breaking suite in browser
2024-12-11 15:06:03 -07:00
Carson Gross
e171bca9e7
Merge branch 'master' into dev
2024-12-11 14:59:27 -07:00
Simon Hartley
704dac7a7f
Replace deprecated String.prototype.substr usage ( #2951 )
...
Co-authored-by: shartley <scrhartley@github.com>
2024-12-11 14:28:09 -07:00
basvk
34dda10f9e
Do not execute hx-trigger="load" on re-initialization of an existing node ( #2976 )
...
* Do not execute hx-trigger="load" on re-initialization of an existing node
* simplify initNode firstInit logic
2024-12-11 14:27:34 -07:00
Alexander Petros
bd35f64cf7
Add missing htmx:trigger event on load triggers ( #3033 )
2024-12-11 14:20:12 -07:00
Alexander Petros
5ab508f652
Make bodyContains return true for nested shadow roots ( #3034 )
...
This fixes an issues in which `bodyContains()` would incorrectly return
false for nested shadow roots.
2024-12-11 14:17:32 -07:00
MichaelWest22
c24fb71a10
Handle Invalid template content ( #3064 )
2024-12-11 14:16:20 -07:00
Carson Gross
2e59a14213
follower24 sponsorship
2024-12-07 20:25:46 -07:00
Carson Gross
45f9c7aa4a
prefer if statements to polymorphism
2024-12-07 20:18:47 -07:00
Carson Gross
f946dbd876
new sponsors
2024-12-05 13:18:27 -07:00
Carson Gross
2b88d967c1
design update
2024-12-03 07:25:05 -07:00
Carson Gross
68ef5c51e2
Merge remote-tracking branch 'origin/master'
2024-12-02 11:06:21 -07:00
Carson Gross
c9b8f0a211
add a modest critique
2024-12-02 11:06:12 -07:00
Ryan Kilpadi
445fddeb28
[Documentation] Update location of ws/sse demo server ( #3052 )
2024-11-30 10:30:53 +01:00
Ryan Kilpadi
ffbcd9291c
[Documentation] Fix outdated attribute links ( #3051 )
2024-11-30 10:27:47 +01:00
Carson Gross
24fb2fe522
essay fix
2024-11-25 05:00:59 -07:00
Carson Gross
bd2150aaaf
Merge remote-tracking branch 'origin/master'
2024-11-25 04:48:51 -07:00
Carson Gross
8ff3b3d186
essay fix
2024-11-25 04:48:30 -07:00
Felipe Gené
1a23a5a6e9
feat: add amz-content-sha256 extension to docs ( #3036 )
2024-11-25 11:25:53 +01:00
Carson Gross
cef216bc55
essay fix
2024-11-24 18:04:35 -07:00
Carson Gross
3e1a3934c9
Merge remote-tracking branch 'origin/master'
2024-11-24 18:00:51 -07:00
Carson Gross
f600eb8550
essay fix
2024-11-24 18:00:42 -07:00
Alec Gargett
6067f4d5d7
fixed minor typo "and" --> "an".md ( #3035 )
2024-11-24 17:19:35 -05:00
Carson Gross
aa9434e002
Merge remote-tracking branch 'origin/master'
2024-11-24 13:01:09 -07:00
Carson Gross
b9cafa3ffa
Merge branch 'master' into codin-dirty-essay
2024-11-24 13:00:33 -07:00
Carson Gross
4ba6852aea
finish codin' dirty essay
2024-11-24 13:00:26 -07:00
MichaelWest22
5373966e7d
Improve detail.elt event documentation ( #3007 )
...
improve detail.elt event documentation
2024-11-24 12:24:42 -05:00
Paul Garner
bc7ea4a8d9
typing for defineExtension
should allow partials ( #3030 )
2024-11-22 11:03:42 +01:00
Simon Hartley
7415f395b2
[Documentation] Fix link in web socket extension docs ( #3026 )
...
Co-authored-by: scrhartley <scrhartley@github.com>
2024-11-19 09:47:29 +01:00
Simon Hartley
7879d2e3bc
[Documentation] Add missing htmx:sendAbort event ( #3024 )
...
Co-authored-by: scrhartley <scrhartley@github.com>
2024-11-17 10:24:16 +01:00
Simon Hartley
001f9e024a
[Documentation] Fix incorrect link ( #3022 )
2024-11-15 09:57:00 +01:00
Carson Gross
dba0fcf7e6
update video
2024-11-14 15:32:00 -07:00
Alexander Petros
b4ebb527a1
WC essay typo fixes ( #3021 )
2024-11-14 08:54:21 +01:00
Markus Unterwaditzer
8d07de9708
fix vertical alignment of github stars button in all states ( #3006 )
...
Without uBlock, the button's alt-text would be 1px lower than the rest
of the nav items, and inconsistently capitalized.
With uBlock, the button would be slightly too high up.
This is on Firefox.
The solution is to apply styles on the `span` that GitHub's JS inserts.
However, using margin will make the entire nav jump during pageload, so
position: relative seems more robust there.
2024-11-13 22:29:30 -05:00
Alexander Petros
82eb2a635a
Fix name on essay ( #3019 )
...
Fix name on essay
2024-11-13 17:24:46 -07:00
Alexander Petros
ccbc101dd8
Add web components essay ( #3018 )
2024-11-13 15:20:56 -07:00