1759 Commits

Author SHA1 Message Date
Carson Gross
8290da624b support next and previous (taken from hyperscript) in target expressions
fixes https://github.com/bigskysoftware/htmx/issues/814
2022-05-13 08:14:38 -06:00
Carson Gross
b735c291df support 'm' for minutes
fixes https://github.com/bigskysoftware/htmx/issues/807
2022-05-13 07:55:59 -06:00
Carson Gross
870ca5591b Merge branch 'master' into dev 2022-05-12 19:36:50 -06:00
Carson Gross
f7b73e6e38 https://github.com/bigskysoftware/htmx/issues/881 2022-05-12 19:36:39 -06:00
Carson Gross
13b3ccff0d Merge branch 'master' into dev
# Conflicts:
#	www/docs.md
2022-05-12 19:34:31 -06:00
Carson Gross
52267f5c74 doc fix for https://github.com/bigskysoftware/htmx/issues/895 2022-05-12 19:31:32 -06:00
Carson Gross
7ee07bb96f fix https://github.com/bigskysoftware/htmx/issues/908
respect the `enctype` attribute on form elements when submitting requests
2022-05-12 18:05:35 -06:00
Carson Gross
2dfffb5182 bump sass :( 2022-05-12 17:35:49 -06:00
Felix Ingram
caf838f2de
Update hx-boost.md (#874) 2022-05-12 16:47:59 -06:00
David Guillot
15eea5577c
Check for localStorage availability (#872)
* feat(utilities): check localStorage availability

* fix(history): don't try to cache if no access to localStorage
2022-05-12 16:47:28 -06:00
Ben Beecher
5b2d1f15c5
Documentation fix (#890) 2022-05-12 16:44:52 -06:00
Ben Beecher
4b5052984b
Attempts to fix case when htmx is loaded multiple times into browser (#883) 2022-05-12 16:44:34 -06:00
Qori El-Hafizh
c91f87727d
Fix a typo in reference.md (#897)
"has been moved to an extension"
2022-05-12 16:43:42 -06:00
Ben Pate
eafd316d5f BUGFIX: API call to shouldCancel
This addresses problems using the WebSocket extension to send messages to a websocket server.  We were calling `shouldCancel` with the incorrect API signature, causing it to return FALSE (as in, don't cancel the event) when it should have returned TRUE (as in, yes, cancel the event)

I don't know why this worked in my tests before, but the test case it behaving correctly now.
2022-05-04 13:24:28 -06:00
Ben Pate
da12daaa31 Add documentation to shouldCancel function 2022-05-04 13:22:31 -06:00
Ben Croker
6a7df0a8c1
More code sample improvements 2022-05-01 13:33:52 +02:00
Ben Croker
51959e41db
Fix spacing 2022-05-01 13:28:01 +02:00
Ben Croker
fda66d7b8f
Fix spacing 2022-05-01 13:25:29 +02:00
Ben Croker
9083ad86d1
Fixed code sample indentation 2022-05-01 13:20:40 +02:00
Ben Croker
218976c5ba
Fixed headings and levels 2022-05-01 13:03:15 +02:00
Ben Croker
9623a32626
Fix header level 2022-05-01 12:45:28 +02:00
Ben Croker
cdc494d7b7
Consistent lower case 2022-05-01 12:23:57 +02:00
Ben Croker
96a3f45b59
Added heading for clarity 2022-04-29 21:39:03 +02:00
Ben Croker
4f3bb039b3
Removed hard-coded number 2022-04-29 21:36:59 +02:00
Ben Pate
70f081318f Update reference.md
- fixed broken link to hx-vars and added a comment that this attribute has been deprecated
- removed a trailing space to make my markdown linter happy
2022-04-18 16:49:45 -06:00
Ben Pate
ca27475b7b Fix stylesheet in realtime tests
The stylesheet was preventing the "echo" test from working correctly.  WS messages were sent/received correctly, but the results could not be displayed because the container size was too small.  This patch allows the containers to grow, and display WS results correctly.
2022-04-18 14:09:30 -06:00
carson
3beec111b8 Merge remote-tracking branch 'origin/dev' into dev 2022-04-15 09:42:31 -06:00
carson
9e7d5e7939 attempt to reproduce https://github.com/bigskysoftware/htmx/issues/854 (unsuccessful so far) 2022-04-15 09:42:23 -06:00
David Guillot
be85c2c191
feat(ext): add disable-element extension (#869)
* feat(ext): add disable-element extension

* fixup! feat(ext): add disable-element extension
2022-04-08 13:13:03 -06:00
carson
7be95f6e3b bump for next version of htmx 2022-04-07 14:34:33 -06:00
carson
0e69b6d064 Merge remote-tracking branch 'origin/dev' into dev 2022-04-07 13:50:07 -06:00
carson
74f520cf8b bump for next version of htmx 2022-04-07 13:49:57 -06:00
Ben Beecher
42db6210d6
Update hx-push.md (#838) 2022-04-07 13:42:04 -06:00
msladecek
9dfc713191
fix links to web-sockets extension page (#841) 2022-04-07 13:41:20 -06:00
Jonathan Berger
75043b2ae1
Fix broken response headers links (#843) 2022-04-07 13:40:54 -06:00
Adam Johnson
0b52a8c6a3
Update installation instructions (#851)
As per #800.

* Recommend downloading htmx as the main way of installing it.
* Cover npm installation in a bit more detail.
* Note the downsides of unpkg.com and always recommend with the integrity SHA.
* Use `<script defer>` in all `<script>` examples. This tells the browser to defer the parsing and processing of the script until all content is on display, increasing performance. [See HTML spec diagram](https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer).
2022-04-07 13:40:37 -06:00
snan
904d5e12a9
Remove double period (#852)
One sentence ended like this..
2022-04-07 13:38:24 -06:00
Adam Johnson
ee5c96b399
Improve HX-Push and hx-push-url documentation (#853)
Expand descriptions, remove duplicate information on HX-Push, and add relevant links to MDN and `hx-history-elt`.
2022-04-07 13:38:00 -06:00
James Gardiner
b8c7f63feb
Fix typo in hypermedia-apis-vs-data-apis.md (#855) 2022-04-07 13:37:34 -06:00
Michael Salihi
1ebfbb8df9
Add Clojure babashka link (#856) 2022-04-07 13:37:15 -06:00
Ruben Nielsen
78940dae3e
Add missing header (#861)
oob-swap wasn't in the headers, making it hard to find, and incidentally a pretty important feature.
2022-04-07 13:36:51 -06:00
Denis Palashevskii
70b4ad16f0
Add data-loading-aria-busy directive for loading-states extension (#864)
* Add data-loading-aria-busy directive for loading-states extension; add tests for the extension

* Update docs

* Fix tests of scoped loading states

* Commit test files

* Improve delay tests by using sinon timer

* Add reference to MDN about `aria-busy` attribute
2022-04-07 13:34:41 -06:00
Deniz Akşimşek
4e4cdf0fee
Update locality-of-behaviour.md (#865) 2022-04-07 13:33:39 -06:00
YesSeri
02d16540a7
Removed two links that don't work (#868)
thank you!
2022-04-07 13:33:05 -06:00
Adam Johnson
d129a3dc10
Rewrite scheme-relative URL’s to https (#870)
Scheme-relative URL’s were invented when HTTPS was slow, so HTTP pages could load resources insecurely, but a little faster. There’s no need to use them now as HTTPS is fast, and everything should be secure.
2022-04-07 13:30:43 -06:00
Adam Johnson
3ddf162d78
Document outerHTML limitation on <body> (#871)
Fixes #790.
2022-04-07 13:30:03 -06:00
Ben Croker
a5a290809c
Simplify htmx.trigger example 2022-03-28 11:25:00 +01:00
carson
9e3d33f90d fix link 2022-03-02 10:18:18 -07:00
carson
2e341fe6d6 Merge remote-tracking branch 'origin/master' 2022-03-02 08:55:02 -07:00
carson
7777452d28 fix integrity sha 2022-03-02 08:52:04 -07:00