Sfoglia il codice sorgente

Merge pull request #299 from ckeditor/t/298

Fixed: HtmlDataProcessor tests failing in firefox because of const va…
Piotrek Koszuliński 9 anni fa
parent
commit
6e5695f33d

+ 1 - 1
packages/ckeditor5-engine/tests/dataprocessor/htmldataprocessor.js

@@ -53,7 +53,7 @@ describe( 'HtmlDataProcessor', () => {
 		} );
 
 		// Test against XSS attacks.
-		for ( const name in xssTemplates ) {
+		for ( let name in xssTemplates ) {
 			const input = xssTemplates[ name ].replace( /%xss%/g, 'testXss()' );
 
 			it( 'should prevent XSS attacks: ' + name, ( done ) => {