Parcourir la source

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 il y a 5 ans
Parent
commit
6711e88f5b
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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 );
 }