Skip to content

Commit b085d89

Browse files
authored
Fix assorted comment typos (bigskysoftware#1590)
1 parent fd912f8 commit b085d89

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
behavior for now, but allowing people to fix it for their use cases by updating the `htmx.config.methodsThatUseUrlParams` config
1010
option. Thank you to Alex and Vincent for their feedback and work on this issue!
1111
* The `this` symbol is now available in event filter expressions, and refers to the element the `hx-trigger` is on
12-
* Fix bug where the `htmx:afterSettle` event was raised multiple times with oob swaps occured
12+
* Fix bug where the `htmx:afterSettle` event was raised multiple times with oob swaps occurred
1313
* A large number of accessibility fixes were made in the docs (Thank you Denis & crew!)
1414
* Fixed bug w/ WebSocket extension initialization caused by "naked" `hx-trigger` feature
1515
* The `HX-Reselect` HTTP response header has been added to change the selection from the returned content
@@ -130,7 +130,7 @@
130130
to both of them without compromising the core file size of htmx. You are encouraged to move over to the new
131131
extensions, but `hx-sse` and `hx-ws` will continue to work indefinitely in htmx 1.x.
132132
* You can now mask out [attribute inheritance](/docs#inheritance) via the [`hx-disinherit`](https://htmx.org/attributes/hx-disinherit) attribute.
133-
* The `HX-Push` header can now have the `false` value, which will prevent a history snapshot from occuring.
133+
* The `HX-Push` header can now have the `false` value, which will prevent a history snapshot from occurring.
134134
* Many new extensions, with a big thanks to all the contributors!
135135
* A new [`alpine-morph`](/extensions/alpine-morph) allows you to use Alpine's swapping engine, which preserves Alpine
136136
* A [restored](/extensions/restored) extension was added that will trigger a `restore` event on all elements in the DOM

src/ext/preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ htmx.defineExtension("preload", {
9696
// Apply the listener to the node
9797
node.addEventListener(on, function(evt) {
9898
if (node.preloadState === "PAUSE") { // Only add one event listener
99-
node.preloadState = "READY"; // Requred for the `load` function to trigger
99+
node.preloadState = "READY"; // Required for the `load` function to trigger
100100

101101
// Special handling for "mouseover" events. Wait 100ms before triggering load.
102102
if (on === "mouseover") {

src/htmx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ return (function () {
227227
* @returns {boolean}
228228
*/
229229
function matches(elt, selector) {
230-
// @ts-ignore: non-standard properties for browser compatability
230+
// @ts-ignore: non-standard properties for browser compatibility
231231
// noinspection JSUnresolvedVariable
232232
var matchesFunction = elt.matches || elt.matchesSelector || elt.msMatchesSelector || elt.mozMatchesSelector || elt.webkitMatchesSelector || elt.oMatchesSelector;
233233
return matchesFunction && matchesFunction.call(elt, selector);
@@ -285,7 +285,7 @@ return (function () {
285285
if (htmx.config.useTemplateFragments && partialResponse) {
286286
var documentFragment = parseHTML("<body><template>" + resp + "</template></body>", 0);
287287
// @ts-ignore type mismatch between DocumentFragment and Element.
288-
// TODO: Are these close enough for htmx to use interchangably?
288+
// TODO: Are these close enough for htmx to use interchangeably?
289289
return documentFragment.querySelector('template').content;
290290
} else {
291291
var startTag = getStartTag(resp);

test/attributes/hx-sse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe("hx-sse attribute", function() {
8282
byId("d1").innerHTML.should.equal("div1 updated");
8383
})
8484

85-
it('does not trigger events not on decendents', function () {
85+
it('does not trigger events not on descendents', function () {
8686

8787
this.server.respondWith("GET", "/d1", "div1 updated");
8888

test/attributes/hx-trigger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ describe("hx-trigger attribute", function(){
525525

526526
});
527527

528-
it('consume prevents event propogation', function()
528+
it('consume prevents event propagation', function()
529529
{
530530
this.server.respondWith("GET", "/foo", "foo");
531531
this.server.respondWith("GET", "/bar", "bar");

test/core/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ describe("Core htmx AJAX Tests", function(){
670670
}
671671
});
672672

673-
it('script nodes do not evaluate when explicity marked as something other than javascript', function()
673+
it('script nodes do not evaluate when explicitly marked as something other than javascript', function()
674674
{
675675
var globalWasCalled = false;
676676
window.callGlobal = function() {

test/ext/bad-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe("bad extension", function() {
44
transformResponse : function(text, xhr, elt) {throw "transformRequest"},
55
isInlineSwap : function(swapStyle) {throw "isInlineSwap"},
66
handleSwap : function(swapStyle, target, fragment, settleInfo) {throw "handleSwap"},
7-
encodeParameters : function(xhr, parameters, elt) {throw "encodeParmeters"}
7+
encodeParameters : function(xhr, parameters, elt) {throw "encodeParameters"}
88
}
99
)
1010
beforeEach(function () {

test/manual/head-support/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ <h2>Appending</h2>
9393

9494
<h3><code>hx-preserve</code> keeps element in head</h3>
9595
<button hx-get="./preserve-1.html">Adds Preserved Style via hx-preserve</button>
96-
<p id="basic-perserve-1">
96+
<p id="basic-preserve-1">
9797
Basic Preserve 1
9898
</p>
9999

100100
<h3>Normal GET appends</h3>
101101
<button hx-get="./preserve-2.html">Preserves Current Style via hx-get</button>
102-
<p id="basic-perserve-2">
102+
<p id="basic-preserve-2">
103103
Basic Preserve 2
104104
</p>
105105

@@ -112,7 +112,7 @@ <h3>Script can keep element in head</h3>
112112
})
113113
</script>
114114
<button hx-get="./preserve-3.html">Adds Preserved Style via event</button>
115-
<p id="basic-perserve-3">
115+
<p id="basic-preserve-3">
116116
Basic Preserve 3
117117
</p>
118118

test/manual/head-support/preserve-1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<head>
22
<style hx-preserve="true">
3-
#basic-perserve-1 {
3+
#basic-preserve-1 {
44
border: 3px solid red;
55
}
66
</style>

test/manual/head-support/preserve-2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<head hx-swap-oob="beforeend">
22
<style>
3-
#basic-perserve-2 {
3+
#basic-preserve-2 {
44
border: 3px solid red;
55
}
66
</style>

0 commit comments

Comments
 (0)