Index: includes/browser.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/browser.inc,v
retrieving revision 1.1
diff -u -r1.1 browser.inc
--- includes/browser.inc	17 Aug 2009 06:08:46 -0000	1.1
+++ includes/browser.inc	19 Aug 2009 07:15:08 -0000
@@ -472,7 +472,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;
       }
@@ -979,9 +979,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');
   }
 
   /**
