Skip to content

Commit bb69e53

Browse files
committed
fix(typo): found by codespell
1 parent 16a46de commit bb69e53

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/purify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ function createDOMPurify(window = getGlobal()) {
10341034
return true;
10351035
}
10361036

1037-
/* Remove any ocurrence of processing instructions */
1037+
/* Remove any occurrence of processing instructions */
10381038
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
10391039
_forceRemove(currentNode);
10401040
return true;

test/fixtures/expect.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export default [
191191
"payload": "<image name=body><image name=adoptNode>@mmrupp<image name=firstElementChild><svg onload=alert(1)>",
192192
"expected": "<img><img>@mmrupp<img><svg></svg>"
193193
}, {
194-
"title": "Special esacpes in protocol handler for XSS in Blink",
194+
"title": "Special escapes in protocol handler for XSS in Blink",
195195
"payload": "<a href=\"\u0001java\u0003script:alert(1)\">@shafigullin<a>",
196196
"expected": "<a>@shafigullin</a><a></a>"
197197
}, {
@@ -879,11 +879,11 @@ export default [
879879
"<math></math>"
880880
]
881881
}, {
882-
"title": "Tests against additonal problems regarding HTML inside MathML 1/2",
882+
"title": "Tests against additional problems regarding HTML inside MathML 1/2",
883883
"payload": "<math><mtext><h1><a><h6></a></h6><mglyph><svg><mtext><style><a title=\"</style><img src onerror='alert(1)'>\"></style></h1>",
884884
"expected": "<math><mtext><h1><a></a><h6><a></a></h6></h1></mtext></math>"
885885
}, {
886-
"title": "Tests against additonal problems regarding HTML inside MathML 2/2",
886+
"title": "Tests against additional problems regarding HTML inside MathML 2/2",
887887
"payload": "<!-- more soon -->",
888888
"expected": ""
889889
}, {

test/karma.custom-launchers.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const getRandomBrowser = () => sample(getAllBrowsers());
206206
* - Whenever on a PR we only want to probe test with Firefox
207207
* - Whenever we are on the most recent node version on GitHub Actions we test via BrowserStack
208208
* - If none of the prior mentioned holds we assume to be running local and respect the passed
209-
* in borwsers argv
209+
* in browsers argv
210210
*/
211211
const shouldProbeOnly = argv.shouldProbeOnly === 'true';
212212
const shouldTestOnBrowserStack = argv.shouldTestOnBrowserStack === 'true';

test/test-suite.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,9 @@
11241124
assert.equal(DOMPurify.removed.length, 0);
11251125
}
11261126
);
1127-
// Tests to make sure that the node scanning feature delivers acurate results on all browsers
1127+
// Tests to make sure that the node scanning feature delivers accurate results on all browsers
11281128
QUnit.test(
1129-
'DOMPurify should deliver acurate results when sanitizing nodes 1',
1129+
'DOMPurify should deliver accurate results when sanitizing nodes 1',
11301130
function (assert) {
11311131
var clean = DOMPurify.sanitize(document.createElement('td'));
11321132
assert.equal(clean, '<td></td>');
@@ -1443,7 +1443,7 @@
14431443
ALLOWED_URI_REGEXP: /test\.com/i
14441444
}), '<img src="https://test.com">');
14451445

1446-
// ensure that the previous regexp does not affect future santize calls
1446+
// ensure that the previous regexp does not affect future sanitize calls
14471447
assert.equal(DOMPurify.sanitize(dirty), expected);
14481448
});
14491449
QUnit.test(
@@ -1588,7 +1588,7 @@
15881588
}
15891589
);
15901590
QUnit.test(
1591-
'Test for less agressive mXSS handling, See #369',
1591+
'Test for less aggressive mXSS handling, See #369',
15921592
function (assert) {
15931593
var config = {
15941594
FORBID_TAGS: ['svg', 'math'],

0 commit comments

Comments
 (0)