Procházet zdrojové kódy

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

Aleksander Nowodzinski před 6 roky
rodič
revize
8570c620d5

+ 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;
 							}