Преглед изворни кода

Fixed: HtmlDataProcessor tests failing in firefox because of const variable in the loop.

Aleksander Nowodzinski пре 9 година
родитељ
комит
90b5d4ae21
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/ckeditor5-engine/tests/dataprocessor/htmldataprocessor.js

+ 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 ) => {