? example.patch
Index: form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.324
diff -u -p -r1.324 form.inc
--- form.inc	14 Mar 2009 20:13:26 -0000	1.324
+++ form.inc	26 Mar 2009 14:11:22 -0000
@@ -1514,7 +1514,8 @@ function form_select_options($element, $
       else {
         $selected = '';
       }
-      $options .= '<option value="' . check_plain($key) . '"' . $selected . '>' . check_plain($choice) . '</option>';
+			$opt_attr = $element['#options_attributes'][$key];
+			$options .= '<option value="'. check_plain($key) .'"'. $selected .' '. drupal_attributes($opt_attr).'>'. check_plain($choice) .'</option>';
     }
   }
   return $options;
