minor spelling fix in htmx.js and api.md (#3476)

minor spelling fix

Co-authored-by: MichaelWest22 <michael.west@docuvera.com>
This commit is contained in:
MichaelWest22
2025-10-18 07:46:53 +13:00
committed by GitHub
parent 04d6c7249b
commit 69ecb9f85d
2 changed files with 2 additions and 2 deletions

View File

@@ -280,7 +280,7 @@ var htmx = (function() {
*/
historyRestoreAsHxRequest: true,
/**
* Weather to report input validation errors to the end user and update focus to the first input that fails validation.
* Whether to report input validation errors to the end user and update focus to the first input that fails validation.
* This should always be enabled as this matches default browser form submit behaviour
* @type boolean
* @default false

View File

@@ -143,7 +143,7 @@ Note that using a [meta tag](@/docs.md#config) is the preferred mechanism for se
* `htmx.config.responseHandling:[...]` - HtmxResponseHandlingConfig[]: the default [Response Handling](@/docs.md#response-handling) behavior for response status codes can be configured here to either swap or error
* `htmx.config.allowNestedOobSwaps:true` - boolean: whether to process OOB swaps on elements that are nested within the main response element. See [Nested OOB Swaps](@/attributes/hx-swap-oob.md#nested-oob-swaps).
* `htmx.config.historyRestoreAsHxRequest:true` - Whether to treat history cache miss full page reload requests as a "HX-Request" by returning this response header. This should always be disabled when using HX-Request header to optionally return partial responses
* `htmx.config.reportValidityOfForms:false` - Weather to report input validation errors to the end user and update focus to the first input that fails validation. This should always be enabled as this matches default browser form submit behaviour
* `htmx.config.reportValidityOfForms:false` - Whether to report input validation errors to the end user and update focus to the first input that fails validation. This should always be enabled as this matches default browser form submit behaviour
##### Example
```js