Index: misc/collapse.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/collapse.js,v
retrieving revision 1.17
diff -u -p -r1.17 collapse.js
--- misc/collapse.js	29 Jan 2008 10:58:25 -0000	1.17
+++ misc/collapse.js	23 Feb 2008 14:32:14 -0000
@@ -71,7 +71,7 @@ Drupal.behaviors.collapse = function (co
         return false;
       }))
       .after($('<div class="fieldset-wrapper"></div>')
-      .append(fieldset.children(':not(legend):not(.action)')))
+      .append(fieldset.contents(':not(legend):not(.action)')))
       .addClass('collapse-processed');
   });
 };
