8
0
Просмотр исходного кода

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

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
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;
 							}