Kaynağa Gözat

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

Aleksander Nowodzinski 6 yıl önce
ebeveyn
işleme
3cef34c45f

+ 1 - 1
packages/ckeditor5-engine/tests/view/view/view.js

@@ -193,7 +193,7 @@ describe( 'view', () => {
 
 			const attributes = {};
 
-			for ( const attribute of domDiv.attributes ) {
+			for ( const attribute of Array.from( domDiv.attributes ) ) {
 				attributes[ attribute.name ] = attribute.value;
 			}