2644 Commits

Author SHA1 Message Date
Vincent
da546050c3
Cache evaluated trigger specs (#1540)
* Cache evaluated trigger specs

* Removed spec array copy

* parseAndCacheTrigger func (wrong indentation for more readable diff)

* triggerSpecsCache config property

* Avoid htmx.config.triggerSpecsCache repetition
2023-12-13 18:27:58 -07:00
Carson Gross
73ec692e6c remove some lets that snuck in 2023-12-13 15:01:16 -07:00
Carson Gross
b75962b9bb update docs 2023-12-13 14:45:47 -07:00
Qori El-Hafizh
89b523cde0
fix typo (#2088)
connect:<url> instead of connect <url>
2023-12-12 11:34:07 -05:00
Deniz Akşimşek
206912b71d
Add missing doctype (#2085) 2023-12-11 12:48:46 -05:00
Henrik Berglund
7de6351d20
feat: Improve web site accessibility/legibility (#2080)
* fix: change css midBlue saturation and body tag color to a darker color

* feat: add empty alt attribute to decorative bars

* feat: add alt attributes for index link images

* fix: tweak code background alpha

* feat: add custom highlighting theme, change comment color to be legible

* fix: replace a tags with span

* fix: lighten background color of div

* feat: add doctype and meta description

* fix: remove doctype to prevent no quirks mode (why.png)
2023-12-10 19:51:40 -05:00
Carson Gross
3be4202e5e add support for dashes in hx-on* attributes 2023-12-07 15:15:10 -07:00
Thad Guidry
9de3c3f068
Add hyperlink to HTML standards for data- prefix (#2072)
Fixes #2071
2023-12-07 11:59:58 -05:00
Viliam Mihálik
24b6ee194e
Improve performance of lib during initialization phase (#2045)
* perf: prevent initialization of all links on page

* perf: changed loop to queryselector

* removed spread operator

* fixed selector

* use only one query to retrieve elements
2023-12-05 16:57:59 -07:00
Conor
255cb9be7b
Fix form validation docs example (#2049)
add: docs fix

Co-authored-by: Conor <col7550@gmail.com>
2023-12-01 15:07:09 -05:00
flixcor
4dc97a400f
Exclude form elements within disabled fieldsets (#2012)
* Exclude form elements within disabled fieldsets

* add test for disabled fieldsets

* cleanup
2023-11-30 15:18:16 -07:00
Sascha Woo
b89e4f4bf6
HX-Request and HX-Current-URL headers are missing in the request to restore from history (#2013) 2023-11-30 15:17:39 -07:00
Yaroslav Lapin
52826aaeec
fix src/htmx.js(3842,25): error TS2769: No overload matches this call. (#2038) 2023-11-30 15:16:45 -07:00
Alexander Petros
40cd1a5e3f
Revert readystate PR (#2040)
Revert "Fix for race condition in readystate detection (#1972)"

This reverts commit 78a9ecf17079fcdfa3d674700d8338b60f14a058.
2023-11-30 15:15:51 -07:00
Jonathan Rietveld
edafdd1770
Use faster regexp.test over string.match for testing against regex (#2053) 2023-11-30 15:15:20 -07:00
Vincent
98997bdd02
Fix wildcard hx-on search's root node (#2060)
Thank you @Telroshan!
2023-11-30 15:14:32 -07:00
Carson Gross
3b65f85784 bump version for next release 2023-11-30 15:13:53 -07:00
Mia
8d0338ade8
Fix the Django example in www/content/examples/confirm.md (#2062) 2023-11-30 15:57:30 -05:00
John Hooks
2fe2f67555
add gophemeral to the webring sites (#2047) 2023-11-27 11:33:57 -05:00
JA
b796c8a52d
fix incorrect config types (#2046) 2023-11-27 10:27:03 -05:00
Jose Vargas
50097b7c5f
Mention response-extension in /docs extensions table (#2044) 2023-11-26 11:41:55 -05:00
JA
264c0f6d63
chore: add missing options to HtmxConfig type (#2026)
chore: add missing types to HtmxConfig
2023-11-24 11:25:34 -05:00
Cristian Molina
30d3ceaf78
Update server-examples.md (#2035)
Add another Ruby gem with Rails specific helpers
2023-11-24 11:24:58 -05:00
Saroj Dahal
9ef76a0935
Fix htmx-indicator example (#2021)
Update docs.md

Fix invalid class name (in style tag) of request indicator .
2023-11-22 08:50:09 -05:00
Angelo Fallaria
6630107ec2
docs(headers): add select to HX-Location (#2022) 2023-11-22 08:48:42 -05:00
Carson Gross
b9225a53e1 Merge remote-tracking branch 'origin/master' 2023-11-21 11:47:09 -07:00
Carson Gross
db5167ebeb Merge branch 'dev' v1.9.9 2023-11-21 11:46:07 -07:00
Carson Gross
555522baaa sha for release 2023-11-21 11:44:50 -07:00
Denis Palashevskii
2859b821a0
Fix hx-on anchor in the docs (#2020)
* Fix hx-on anchor in the docs

* add hx-on to table of contents in the docs

* preserve links integrity

There are most likely links to #the-hx-on-attribute in the wild.
I managed to find one on the Discord at list. Probably best to keep both options
2023-11-21 12:50:03 -05:00
Carson Gross
7b918d9d25 prep 1.9.9 release 2023-11-20 16:27:37 -07:00
Carson Gross
d5203c3b42 Merge remote-tracking branch 'origin/dev' into dev 2023-11-20 16:17:21 -07:00
ahollandECS
78a9ecf170
Fix for race condition in readystate detection (#1972)
* trying to fix readystate race condition

* es6 to es5

* serialized intitialization routines

* encapsulating ready function call
2023-11-20 11:07:01 -06:00
Carson Gross
c538c65a4b fix typo 2023-11-19 18:30:40 -07:00
Carson Gross
52d19a47fb Merge remote-tracking branch 'origin/dev' into dev 2023-11-19 07:56:40 -07:00
Dan Palmer
0b37d0507d
Fix relative resource URLs for boosted links (#1960)
Fix relative URLs
2023-11-19 07:56:06 -07:00
Carson Gross
087f7cb45a Merge branch 'master' into dev 2023-11-19 07:53:45 -07:00
Carson Gross
331f79d469 fix typo 2023-11-18 21:06:25 -07:00
Carson Gross
62ef92ccce fix typo 2023-11-18 20:57:16 -07:00
Carson Gross
a573775cb5 Merge remote-tracking branch 'origin/master' 2023-11-18 20:25:07 -07:00
Carson Gross
29bb2abcc6 new essay 2023-11-18 20:24:59 -07:00
Carson Gross
242f6631fa Merge remote-tracking branch 'origin/master' into dev
# Conflicts:
#	www/content/docs.md
2023-11-16 16:53:23 -07:00
Carson Gross
a59a10baad bump for next version 2023-11-16 16:52:11 -07:00
Carson Gross
ab8605714f Merge remote-tracking branch 'origin/dev' into dev 2023-11-16 16:50:16 -07:00
Spiro Floropoulos
7f3d752553
Adding Laravel PHP Example (#1982)
Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
2023-11-16 14:04:10 -07:00
matiboy
c454ea4eee
Fix WS sendImmediately (#1949)
* Tests at current state of the code

* Currently failing case (actual issue)

* Fix issue

---------

Co-authored-by: mat <matt@techspace.asia>
2023-11-16 13:48:36 -07:00
michaelperel
68661753bd
fix indicator styles flash (#1227)
fix flash of indicator when first added to page
2023-11-16 13:46:29 -07:00
Jonathan Rietveld
7ef95e8963
Allow CSS selectors with whitespace in hx-trigger (#1913)
* Allow CSS selectors with whitespace in `hx-trigger`

Parsing of `hx-trigger` scans for whitespace, so if a CSS selector is used that contains whitespace, e.g. `form input`, a syntax error is raised.
A workaround is implemented by allowing such a CSS selector to be wrapped in either curly braces or parentheses.

* Add explanation whitespace in CSS selector to docs

* Tests for CSS selectors containing whitespace

* Use faster RegEx test, remove redundant variable declarations

* Added Descendant Combinator support to `root` and `target` modifiers

* Add missing semicolon

* Tests for descendant combinators in `root` and `target` modifiers

* Improve descendant combinator test coverage
2023-11-16 13:45:46 -07:00
gbourant
6a9a861ad9
Allow user to override Content-Type header (#1906)
* allow user to override Content-Type header

* reorder the code so it won't use userSetContentType variable

* remove userSetContentType

* clarification

* remove unrelated changes

---------

Co-authored-by: gbourant <root@gbourant.com>
2023-11-16 13:42:45 -07:00
Alexander Petros
f9e9588a24
Update contribution guidelines (#1943)
* Update contribution guidelines

Break the PRs section into technical requirements and guidelines for how
we reviews. Add new info about how to craft PRs that are easy for us to
review.

* Fix typo

* Add note about extensions

* New extension guidelines
2023-11-16 13:41:26 -07:00
Alexander Petros
c27907c50b
Add a PR template (#1980)
* Add a PR template

* Add note about features

* Add new extension guidelines
2023-11-16 13:39:17 -07:00