Index: views_plugin_pager_infinite_scroll.inc
===================================================================
--- views_plugin_pager_infinite_scroll.inc
+++ views_plugin_pager_infinite_scroll.inc
@@ -21,6 +21,7 @@
   function render($input) {
     global $base_url;
     $style_plugin = $this->view->display_handler->default_display->options['style_plugin'];
+    $style_options = $this->view->display_handler->default_display->options['style_options'];
     $content_selector = '';
     $items_selector = '';
     $img_path = $base_url . '/' . drupal_get_path('module', 'views_infinite_scroll') . '/images/ajax-loader.gif';
@@ -30,15 +31,20 @@
         $items_selector = '.views-row';
         break;
       case 'grid':
-        $content_selector = 'div.view-content tbody';
+        $content_selector = 'div.view-content>table>tbody';
         $items_selector = 'tr';
         break;
       case 'list':
-        $content_selector = 'div.view-content .item-list > *';
+        if (array_key_exists('wrapper_class', $style_options)) {
+          $wrapper_class = '.' . $style_options['wrapper_class'];
+        } else {
+          $wrapper_class = '.item-list';
+        }
+        $content_selector = 'div.view-content>' . $wrapper_class . ' > *';
         $items_selector = '.views-row';
         break;
       case 'table':
-        $content_selector = 'div.view-content tbody';
+        $content_selector = 'div.view-content>table>tbody';
         $items_selector = 'tr';
         break;
     }
