ソースを参照

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

Aleksander Nowodzinski 7 年 前
コミット
8769efccfa

+ 1 - 1
packages/ckeditor5-editor-decoupled/tests/decouplededitorui.js

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