diff --git a/theme/system/textfield.func.php b/theme/system/textfield.func.php
index 016e6ee..ab514e2 100644
--- a/theme/system/textfield.func.php
+++ b/theme/system/textfield.func.php
@@ -19,7 +19,8 @@ function bootstrap_textfield($variables) {
   ));
   _form_set_class($element, array('form-text'));
 
-  $output = '<input' . drupal_attributes($element['#attributes']) . ' />';
+  $attributes = drupal_array_merge_deep($element['#attributes']);
+  $output = '<input' . drupal_attributes($attributes) . ' />';
 
   $extra = '';
   if ($element['#autocomplete_path'] && drupal_valid_path($element['#autocomplete_path'])) {
