Other rounds: [One|Two|Three|Four|Five]
We're back again with another round of "Bug or Feature?" highlighting a particular behavior in one or more browsers, that, well, could be a Bug, or it could be a Feature... we'll open up the comments for your vote and opinion.
Alright, what's today's "Bug or Feature"?
Synopsis:
Everyone knows the basic form elements [button|fieldset|input|textarea|select]. Within the [input] element there are several types: [button|checkbox|file|hidden|image|password|radio|reset|submit|text].
However there is a quirk/loophole/bug/feature with the <input> element that some browsers are taking advantage of.
By default, if you don't specify the type attribute, or specify a value that isn't recognized as one of the above types the browser should default to "text" (and every browser does) - however some browsers take advantage of certain key types and then render the field in their own special ways.
For example if you use: <input type="search" value="Keywords..."/> in Safari and Chrome it will render like this:
As you can see a little 'x' is provided automatically to allow users to clear the value with a mouse click.
If you don't specify a value Safari will provide a faded tip in the box indicating what the field is for:
Ok, what about other types? and other browsers?
For example if you use: <input type="email"/> in Opera it will render like this:
The little email icon helps identify the field as being a field expecting an email address as the input value and it also increases the default size of ~20 characters to ~25characters (depending on your font selection)
If you use: <input type="url"/> in Opera it will render like this:
Again Opera adds a little icon and increases the field size to ~28 characters.
Know of any other values for type that one or more browsers treat in a special way? If so, let us know!
So now the Question is...
Is this a Bug? Or a Feature?
Vote "Bug" or "Feature", and add your thoughts.
Update: 100 bonus points for Rafael! As noted in the comments below the "url" and "email" types that Opera rendered uniquely just happen to be 2 of the types specified in Web Forms 2.0 and they happened to be 2 of the less decorated fields. The full set of new field types is supported in Opera and they look and work great! We'll post some screen shots of these fields shortly.
Opera's Web Forms 2.0
Date:
DateTime (local):
DateTime:
Time:
Month:
Week:
Number:
Range: (numbers added for visual aid only)
Submit a bug