diff --git a/media/unit_testing/tests_onhold/1_dom/sDom.js b/media/unit_testing/tests_onhold/1_dom/sDom.js index 7ee91d0c..165071c6 100755 --- a/media/unit_testing/tests_onhold/1_dom/sDom.js +++ b/media/unit_testing/tests_onhold/1_dom/sDom.js @@ -109,7 +109,7 @@ $(document).ready( function () { } /* Only the two custom divs don't have class names */ - if ( !jqNodes[i].getAttribute('class') ) + if ( jqNodes[i].className == "" ) { nCustomWrappers.push( jqNodes[i] ); } diff --git a/media/unit_testing/tests_onhold/2_js/sDom.js b/media/unit_testing/tests_onhold/2_js/sDom.js index 140ca5c9..8293972a 100644 --- a/media/unit_testing/tests_onhold/2_js/sDom.js +++ b/media/unit_testing/tests_onhold/2_js/sDom.js @@ -113,7 +113,7 @@ $(document).ready( function () { } /* Only the two custom divs don't have class names */ - if ( !jqNodes[i].getAttribute('class') ) + if ( jqNodes[i].className == "" ) { nCustomWrappers.push( jqNodes[i] ); } diff --git a/media/unit_testing/tests_onhold/3_ajax/sDom.js b/media/unit_testing/tests_onhold/3_ajax/sDom.js index 07341128..0af1f599 100644 --- a/media/unit_testing/tests_onhold/3_ajax/sDom.js +++ b/media/unit_testing/tests_onhold/3_ajax/sDom.js @@ -113,7 +113,7 @@ $(document).ready( function () { } /* Only the two custom divs don't have class names */ - if ( !jqNodes[i].getAttribute('class') ) + if ( jqNodes[i].className == "" ) { nCustomWrappers.push( jqNodes[i] ); } diff --git a/media/unit_testing/tests_onhold/4_server-side/sDom.js b/media/unit_testing/tests_onhold/4_server-side/sDom.js index 3ab4c06d..159e2027 100644 --- a/media/unit_testing/tests_onhold/4_server-side/sDom.js +++ b/media/unit_testing/tests_onhold/4_server-side/sDom.js @@ -116,7 +116,7 @@ $(document).ready( function () { } /* Only the two custom divs don't have class names */ - if ( !jqNodes[i].getAttribute('class') ) + if ( jqNodes[i].className == "" ) { nCustomWrappers.push( jqNodes[i] ); } diff --git a/media/unit_testing/tests_onhold/5_ajax_objects/sDom.js b/media/unit_testing/tests_onhold/5_ajax_objects/sDom.js index 40bc1c47..cef29bb0 100644 --- a/media/unit_testing/tests_onhold/5_ajax_objects/sDom.js +++ b/media/unit_testing/tests_onhold/5_ajax_objects/sDom.js @@ -134,7 +134,7 @@ $(document).ready( function () { } /* Only the two custom divs don't have class names */ - if ( !jqNodes[i].getAttribute('class') ) + if ( jqNodes[i].className == "" ) { nCustomWrappers.push( jqNodes[i] ); } diff --git a/media/unit_testing/tests_onhold/6_delayed_rendering/sDom.js b/media/unit_testing/tests_onhold/6_delayed_rendering/sDom.js index 243f5b3a..4227ff0a 100644 --- a/media/unit_testing/tests_onhold/6_delayed_rendering/sDom.js +++ b/media/unit_testing/tests_onhold/6_delayed_rendering/sDom.js @@ -116,7 +116,7 @@ $(document).ready( function () { } /* Only the two custom divs don't have class names */ - if ( !jqNodes[i].getAttribute('class') ) + if ( jqNodes[i].className == "" ) { nCustomWrappers.push( jqNodes[i] ); }