瀏覽代碼

Tests: Fixed tests broken due to non–iterable nature of DOM element attributes in MSEdge (see ckeditor/ckeditor5#479).

Aleksander Nowodzinski 6 年之前
父節點
當前提交
3b95cd3f43
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-editor-classic/tests/classiceditorui.js

+ 1 - 1
packages/ckeditor5-editor-classic/tests/classiceditorui.js

@@ -250,7 +250,7 @@ describe( 'ClassicEditorUI', () => {
 						.then( () => {
 							const attributes = {};
 
-							for ( const attribute of domElement.attributes ) {
+							for ( const attribute of Array.from( domElement.attributes ) ) {
 								attributes[ attribute.name ] = attribute.value;
 							}