浏览代码

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