Browse Source

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

Aleksander Nowodzinski 6 years ago
parent
commit
3b95cd3f43
1 changed files with 1 additions and 1 deletions
  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;
 							}