Permalink
Browse files

Attributes: don't test SVG CSS-class manipulation in IE8

  • Loading branch information...
markelog committed May 19, 2015
1 parent 401a351 commit 57fb2dc02ec286c51b456f0e460ad258f332b6ac
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/unit/attributes.js
View
@@ -1478,6 +1478,18 @@ test( "Insignificant white space returned for $(option).val() (#14858)", functio
});
test( "SVG class manipulation (gh-2199)", function() {
+
+ // Support: IE8
+ var svgSupport = !!document.createElementNS &&
+ !!document.createElementNS( "http://www.w3.org/2000/svg", "svg" ).createSVGRect;
+
+ if ( !svgSupport ) {
+ expect( 1 );
+ ok( true, "Environment doesn't support SVG" );
+
+ return;
+ }
+
expect( 12 );
function createSVGElement( nodeName ) {

4 comments on commit 57fb2dc

@markelog

This comment has been minimized.

Show comment
Hide comment
Member

markelog replied May 19, 2015

@timmywil fyi

@mgol

This comment has been minimized.

Show comment
Hide comment
@mgol

mgol May 19, 2015

Member

@markelog I created #2325 but this is better. :)

Member

mgol replied May 19, 2015

@markelog I created #2325 but this is better. :)

@markelog

This comment has been minimized.

Show comment
Hide comment
@markelog

markelog May 19, 2015

Member

Oh, sorry, should have assumed you on it :-)

Member

markelog replied May 19, 2015

Oh, sorry, should have assumed you on it :-)

@timmywil

This comment has been minimized.

Show comment
Hide comment
@timmywil

timmywil May 19, 2015

Member

Thanks. LGTM.

Member

timmywil replied May 19, 2015

Thanks. LGTM.

Please sign in to comment.