Skip to content

Commit 57fb2dc

Browse files
committed
Attributes: don't test SVG CSS-class manipulation in IE8
Ref 20aaed3
1 parent 401a351 commit 57fb2dc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/attributes.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,18 @@ test( "Insignificant white space returned for $(option).val() (#14858)", functio
14781478
});
14791479

14801480
test( "SVG class manipulation (gh-2199)", function() {
1481+
1482+
// Support: IE8
1483+
var svgSupport = !!document.createElementNS &&
1484+
!!document.createElementNS( "http://www.w3.org/2000/svg", "svg" ).createSVGRect;
1485+
1486+
if ( !svgSupport ) {
1487+
expect( 1 );
1488+
ok( true, "Environment doesn't support SVG" );
1489+
1490+
return;
1491+
}
1492+
14811493
expect( 12 );
14821494

14831495
function createSVGElement( nodeName ) {

0 commit comments

Comments
 (0)