]> source.dussan.org Git - jquery.git/commitdiff
Attributes: don't test SVG CSS-class manipulation in IE8
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 19 May 2015 10:12:11 +0000 (13:12 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 19 May 2015 10:47:11 +0000 (13:47 +0300)
Ref 20aaed367f993f3c2aa204183d82d0d73efa114f

test/unit/attributes.js

index 022d4a8b3bfa7e5d63cfdac6bce33b47a4a667e6..43ccaacdfdbe553674bc867300f9ea1dbe32adb6 100644 (file)
@@ -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 ) {