Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.811
diff -u -p -r1.811 common.inc
--- includes/common.inc	26 Oct 2008 18:06:38 -0000	1.811
+++ includes/common.inc	13 Oct 2008 16:59:27 -0000
@@ -1502,6 +1502,7 @@ function url($path = NULL, array $option
  *
  * @param $attributes
  *   An associative array of HTML attributes.
+ *   Array values will be concatenated together.
  * @return
  *   An HTML string ready for insertion in a tag.
  */
@@ -1509,6 +1510,9 @@ function drupal_attributes($attributes =
   if (is_array($attributes)) {
     $t = '';
     foreach ($attributes as $key => $value) {
+      if (is_array($value)) {
+        $value = implode(' ', $value);
+      }
       $t .= " $key=" . '"' . check_plain($value) . '"';
     }
     return $t;
