Explorar el Código

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

Aleksander Nowodzinski hace 6 años
padre
commit
8570c620d5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-editor-inline/tests/inlineeditorui.js

+ 1 - 1
packages/ckeditor5-editor-inline/tests/inlineeditorui.js

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