Index: includes/browser.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/browser.inc,v
retrieving revision 1.3
diff -u -r1.3 browser.inc
--- includes/browser.inc	31 Aug 2009 05:56:54 -0000	1.3
+++ includes/browser.inc	3 Sep 2009 09:28:19 -0000
@@ -497,7 +497,7 @@
       }
 
       // Check if the
-      if (($type == 'submit' || $type == 'image') && $submit == $html_value) {
+      if (($type == 'submit' || $type == 'button' || $type == 'image') && $submit == $html_value) {
         $post[$name] = $html_value;
         $submit_found = TRUE;
       }
@@ -985,9 +985,9 @@
    */
   public function getInputs($parent = NULL) {
     if ($parent) {
-      return $parent->xpath('.//input|.//textarea|.//select');
+      return $parent->xpath('.//input|.//textarea|.//select.//button');
     }
-    return $this->xpath('.//input|.//textarea|.//select');
+    return $this->xpath('.//input|.//textarea|.//select.//button');
   }
 
   /**
