8
0
Pārlūkot izejas kodu

Other: Remove the Edge-specific assertion for SVG content. 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
Tomek Wytrębowicz 5 gadi atpakaļ
vecāks
revīzija
6711e88f5b
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      packages/ckeditor5-ui/tests/icon/iconview.js

+ 1 - 2
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 );
 }