From e898e8c04e6842c25eafbdd5da51fef092e0bc1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Mon, 20 Apr 2020 17:40:54 +0200 Subject: [PATCH] Other: Remove the Edge-specific assertion for SVG content. See ckeditor/ckeditor5#6202. Old versions of Edge were sprouting xmlns attributes for inner elements. Agreed at https://github.com/ckeditor/ckeditor5-utils/pull/333#issuecomment-615275702 --- packages/ckeditor5-ui/tests/icon/iconview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/ckeditor5-ui/tests/icon/iconview.js b/packages/ckeditor5-ui/tests/icon/iconview.js index cc271681208..310629810a6 100644 --- a/packages/ckeditor5-ui/tests/icon/iconview.js +++ b/packages/ckeditor5-ui/tests/icon/iconview.js @@ -131,7 +131,6 @@ describe( 'IconView', () => { } ); function assertIconInnerHTML( icon, expected ) { - // Edge adds the xmlns attribute to each node when obtaining from parent's innerHTML. - expect( normalizeHtml( icon.element.innerHTML.replace( /xmlns="[^"]+"/, '' ) ) ) + expect( normalizeHtml( icon.element.innerHTML ) ) .to.equal( expected ); }