File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1034,7 +1034,7 @@ function createDOMPurify(window = getGlobal()) {
1034
1034
return true ;
1035
1035
}
1036
1036
1037
- /* Remove any ocurrence of processing instructions */
1037
+ /* Remove any occurrence of processing instructions */
1038
1038
if ( currentNode . nodeType === NODE_TYPE . progressingInstruction ) {
1039
1039
_forceRemove ( currentNode ) ;
1040
1040
return true ;
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export default [
191
191
"payload" : "<image name=body><image name=adoptNode>@mmrupp<image name=firstElementChild><svg onload=alert(1)>" ,
192
192
"expected" : "<img><img>@mmrupp<img><svg></svg>"
193
193
} , {
194
- "title" : "Special esacpes in protocol handler for XSS in Blink" ,
194
+ "title" : "Special escapes in protocol handler for XSS in Blink" ,
195
195
"payload" : "<a href=\"\u0001java\u0003script:alert(1)\">@shafigullin<a>" ,
196
196
"expected" : "<a>@shafigullin</a><a></a>"
197
197
} , {
@@ -879,11 +879,11 @@ export default [
879
879
"<math></math>"
880
880
]
881
881
} , {
882
- "title" : "Tests against additonal problems regarding HTML inside MathML 1/2" ,
882
+ "title" : "Tests against additional problems regarding HTML inside MathML 1/2" ,
883
883
"payload" : "<math><mtext><h1><a><h6></a></h6><mglyph><svg><mtext><style><a title=\"</style><img src onerror='alert(1)'>\"></style></h1>" ,
884
884
"expected" : "<math><mtext><h1><a></a><h6><a></a></h6></h1></mtext></math>"
885
885
} , {
886
- "title" : "Tests against additonal problems regarding HTML inside MathML 2/2" ,
886
+ "title" : "Tests against additional problems regarding HTML inside MathML 2/2" ,
887
887
"payload" : "<!-- more soon -->" ,
888
888
"expected" : ""
889
889
} , {
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ const getRandomBrowser = () => sample(getAllBrowsers());
206
206
* - Whenever on a PR we only want to probe test with Firefox
207
207
* - Whenever we are on the most recent node version on GitHub Actions we test via BrowserStack
208
208
* - 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
210
210
*/
211
211
const shouldProbeOnly = argv . shouldProbeOnly === 'true' ;
212
212
const shouldTestOnBrowserStack = argv . shouldTestOnBrowserStack === 'true' ;
Original file line number Diff line number Diff line change 1124
1124
assert . equal ( DOMPurify . removed . length , 0 ) ;
1125
1125
}
1126
1126
) ;
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
1128
1128
QUnit . test (
1129
- 'DOMPurify should deliver acurate results when sanitizing nodes 1' ,
1129
+ 'DOMPurify should deliver accurate results when sanitizing nodes 1' ,
1130
1130
function ( assert ) {
1131
1131
var clean = DOMPurify . sanitize ( document . createElement ( 'td' ) ) ;
1132
1132
assert . equal ( clean , '<td></td>' ) ;
1443
1443
ALLOWED_URI_REGEXP : / t e s t \. c o m / i
1444
1444
} ) , '<img src="https://test.com">' ) ;
1445
1445
1446
- // ensure that the previous regexp does not affect future santize calls
1446
+ // ensure that the previous regexp does not affect future sanitize calls
1447
1447
assert . equal ( DOMPurify . sanitize ( dirty ) , expected ) ;
1448
1448
} ) ;
1449
1449
QUnit . test (
1588
1588
}
1589
1589
) ;
1590
1590
QUnit . test (
1591
- 'Test for less agressive mXSS handling, See #369' ,
1591
+ 'Test for less aggressive mXSS handling, See #369' ,
1592
1592
function ( assert ) {
1593
1593
var config = {
1594
1594
FORBID_TAGS : [ 'svg' , 'math' ] ,
You can’t perform that action at this time.
0 commit comments