Index: category-template.php
===================================================================
--- category-template.php	(revision 20972)
+++ category-template.php	(working copy)
@@ -307,7 +307,8 @@
 		'name' => 'cat', 'id' => '',
 		'class' => 'postform', 'depth' => 0,
 		'tab_index' => 0, 'taxonomy' => 'category',
-		'hide_if_empty' => false
+		'hide_if_empty' => false,
+		'attr' => array(),
 	);
 
 	$defaults['selected'] = ( is_category() ) ? get_query_var( 'cat' ) : 0;
@@ -325,18 +326,21 @@
 	}
 
 	extract( $r );
-
-	$tab_index_attribute = '';
+	
+	$attributes = '';
+	foreach ( (array)$attr as $attr_name => $value ) {
+		$attributes .= " $attr_name=" . '"' . $value . '"';
+	}
 	if ( (int) $tab_index > 0 )
-		$tab_index_attribute = " tabindex=\"$tab_index\"";
-
+		$attributes .= " tabindex=\"$tab_index\"";
+		
 	$categories = get_terms( $taxonomy, $r );
 	$name = esc_attr( $name );
 	$class = esc_attr( $class );
 	$id = $id ? esc_attr( $id ) : $name;
 
 	if ( ! $r['hide_if_empty'] || ! empty($categories) )
-		$output = "<select name='$name' id='$id' class='$class' $tab_index_attribute>\n";
+		$output = "<select name='$name' id='$id' class='$class' $attributes>\n";
 	else
 		$output = '';
 
