I've found that the attribute type='text' has gone missing.
A possible fix for that would be adding it on line 227 in functions/form.php
$element['#attributes']['type'] = 'text';

It might be related to http://drupal.org/node/1539398#comment-5973946

CommentFileSizeAuthor
inputfields.jpg160.22 KBdriesdelaey

Comments

driesdelaey’s picture

Status: Active » Closed (works as designed)

ha. I just overlooked this. 2 lines further it was actually documented

//dont need to set type in html5 its default so lets remove it because we can
//  $element['#attributes']['type'] = 'text';

I was having issues with the type-attribute being removed, in combination with the twitter bootstrap:
twitter bootstrap sets a fixed width/height on input elements, which causes box-sizing issues. I was fixing that with the input[type=text] in css, but I'll have to come up with another solution for that.

although it might be an idea to add this as an option to the theme settings?
'use type attribute for input elements' ? (since use input[type="..."] instead in the css is actually adviced if you check the setting Remove form-[type] class from form field

kind regard,
Dries

mortendk’s picture

actually it make sense to keep the type here - i was a little bit to quick on the trigger.

without this it can make the css a little bit to cumbersome to work with & that wasnt the idea ;)

mortendk’s picture

actually it make sense to keep the type here - i was a little bit to quick on the trigger.

without this it can make the css a little bit to cumbersome to work with & that wasnt the idea ;)

gagarine’s picture

Status: Closed (works as designed) » Active

So this was fixed?

mortendk’s picture

Status: Active » Fixed

yes its fixed in the 7.x.2.7 version beta5

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.