Skip to content

Commit 9fb3c0e

Browse files
authored
Fix variable names (#3344)
* Fix variable names * Fix one more variable name
1 parent d91c882 commit 9fb3c0e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

TESTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This guide outlines how to test htmx, focusing on running tests headlessly or in
1010
npm install
1111
npm run test
1212
```
13-
During test runs it will auto install playwrite
13+
During test runs it will auto install playwright
1414

1515
## Running All Tests
1616

editors/jetbrains/htmx.web-types.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,12 @@
431431
},
432432
{
433433
"name": "historyCacheHit",
434-
"description": "This event is triggered when a cache hit occurs when restoring history\n\nYou can prevent the history restoration via `preventDefault()` to allow alternative restore handling.\nYou can also override the details of the history restoration request in this event if required\n\n##### Details\n\n* `detail.historyElt` - the history element or body that will get replaced\n* `detail.item.content` - the content of the cache that will be swapped in\n* `detail.item.title` - the page title to update from the cache\n* `detail.path` - the path and query of the page being restored\n* `detial.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'\n\n",
434+
"description": "This event is triggered when a cache hit occurs when restoring history\n\nYou can prevent the history restoration via `preventDefault()` to allow alternative restore handling.\nYou can also override the details of the history restoration request in this event if required\n\n##### Details\n\n* `detail.historyElt` - the history element or body that will get replaced\n* `detail.item.content` - the content of the cache that will be swapped in\n* `detail.item.title` - the page title to update from the cache\n* `detail.path` - the path and query of the page being restored\n* `detail.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'\n\n",
435435
"doc-url": "https://htmx.org/events/#htmx:historyCacheHit"
436436
},
437437
{
438438
"name": "historyCacheMiss",
439-
"description": "This event is triggered when a cache miss occurs when restoring history\n\nYou can prevent the history restoration via `preventDefault()` to allow alternative restore handling.\nYou can also modify the xhr request or other details before it makes the the request to restore history\n\n##### Details\n\n* `detail.historyElt` - the history element or body that will get replaced\n* `detail.xhr` - the `XMLHttpRequest` that will retrieve the remote content for restoration\n* `detail.path` - the path and query of the page being restored\n* `detial.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'\n\n",
439+
"description": "This event is triggered when a cache miss occurs when restoring history\n\nYou can prevent the history restoration via `preventDefault()` to allow alternative restore handling.\nYou can also modify the xhr request or other details before it makes the the request to restore history\n\n##### Details\n\n* `detail.historyElt` - the history element or body that will get replaced\n* `detail.xhr` - the `XMLHttpRequest` that will retrieve the remote content for restoration\n* `detail.path` - the path and query of the page being restored\n* `detail.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'\n\n",
440440
"doc-url": "https://htmx.org/events/#htmx:historyCacheMiss"
441441
},
442442
{
@@ -446,7 +446,7 @@
446446
},
447447
{
448448
"name": "historyCacheMissLoad",
449-
"description": "This event is triggered when a cache miss occurs and a response has been retrieved successfully from the server\nfor the content to restore\n\nYou can modify the details before it makes the swap to restore the history\n\n##### Details\n\n* `detail.historyElt` - the history element or body that will get replaced\n* `detail.xhr` - the `XMLHttpRequest`\n* `detail.path` - the path and query of the page being restored\n* `detail.response` - the response text that will be swapped in\n* `detial.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'\n\n",
449+
"description": "This event is triggered when a cache miss occurs and a response has been retrieved successfully from the server\nfor the content to restore\n\nYou can modify the details before it makes the swap to restore the history\n\n##### Details\n\n* `detail.historyElt` - the history element or body that will get replaced\n* `detail.xhr` - the `XMLHttpRequest`\n* `detail.path` - the path and query of the page being restored\n* `detail.response` - the response text that will be swapped in\n* `detail.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'\n\n",
450450
"doc-url": "https://htmx.org/events/#htmx:historyCacheMissLoad"
451451
},
452452
{

test/attributes/hx-swap-oob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ describe('hx-swap-oob attribute', function() {
349349
}
350350

351351
it.skip('triggers htmx:oobErrorNoTarget when no targets found', function(done) {
352-
// this test fails right now because when targets not found it returns an empty array which makes it miss the event as it should be if (targets.lenght)
352+
// this test fails right now because when targets not found it returns an empty array which makes it miss the event as it should be if (targets.length)
353353
this.server.respondWith('GET', '/test', "Clicked<div id='nonexistent' hx-swap-oob='true'>Swapped</div>")
354354
var div = make('<div hx-get="/test">click me</div>')
355355

www/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Thank you to all our generous <a href="https://github.com/sponsors/bigskysoftwar
258258
<div>
259259
<a data-github-account="tracebit-com" href="https://tracebit.com/?utm_source=htmx">
260260
<img class="dark-hidden" alt="Tracebit Cloud Canaries" src="/img/tracebit-logo.png">
261-
<img class="dark-visbile" alt="Tracebit Cloud Canaries" src="/img/tracebit-logo-dark.png">
261+
<img class="dark-visible" alt="Tracebit Cloud Canaries" src="/img/tracebit-logo-dark.png">
262262
</a>
263263
</div>
264264
<div>

www/content/events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ You can also override the details of the history restoration request in this eve
275275
* `detail.item.content` - the content of the cache that will be swapped in
276276
* `detail.item.title` - the page title to update from the cache
277277
* `detail.path` - the path and query of the page being restored
278-
* `detial.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'
278+
* `detail.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'
279279

280280
### Event - `htmx:historyCacheMiss` {#htmx:historyCacheMiss}
281281

@@ -289,7 +289,7 @@ You can also modify the xhr request or other details before it makes the the req
289289
* `detail.historyElt` - the history element or body that will get replaced
290290
* `detail.xhr` - the `XMLHttpRequest` that will retrieve the remote content for restoration
291291
* `detail.path` - the path and query of the page being restored
292-
* `detial.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'
292+
* `detail.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'
293293

294294
### Event - `htmx:historyCacheMissLoadError` {#htmx:historyCacheMissLoadError}
295295

@@ -314,7 +314,7 @@ You can modify the details before it makes the swap to restore the history
314314
* `detail.xhr` - the `XMLHttpRequest`
315315
* `detail.path` - the path and query of the page being restored
316316
* `detail.response` - the response text that will be swapped in
317-
* `detial.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'
317+
* `detail.swapSpec` - the swapSpec to be used containing the defatul swapStyle='innerHTML'
318318

319319
### Event - `htmx:historyRestore` {#htmx:historyRestore}
320320

www/static/test/attributes/hx-swap-oob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ describe('hx-swap-oob attribute', function() {
349349
}
350350

351351
it.skip('triggers htmx:oobErrorNoTarget when no targets found', function(done) {
352-
// this test fails right now because when targets not found it returns an empty array which makes it miss the event as it should be if (targets.lenght)
352+
// this test fails right now because when targets not found it returns an empty array which makes it miss the event as it should be if (targets.length)
353353
this.server.respondWith('GET', '/test', "Clicked<div id='nonexistent' hx-swap-oob='true'>Swapped</div>")
354354
var div = make('<div hx-get="/test">click me</div>')
355355

0 commit comments

Comments
 (0)