'edittools' => 'HTMLEditTools',
'checkmatrix' => 'HTMLCheckMatrix',
// HTMLTextField will output the correct type="" attribute automagically.
- // There are about four zillion other HTML5 input types, like url, but
+ // There are about four zillion other HTML5 input types, like range, but
// we don't use those at the moment, so no point in adding all of them.
'email' => 'HTMLTextField',
'password' => 'HTMLTextField',
+ 'url' => 'HTMLTextField',
);
public $mFieldData;
# is essentially just a clone of this one.
if ( isset( $this->mParams['type'] ) ) {
switch ( $this->mParams['type'] ) {
- case 'email':
- $attribs['type'] = 'email';
- break;
case 'int':
$attribs['type'] = 'number';
break;
$attribs['step'] = 'any';
break;
# Pass through
+ case 'email':
case 'password':
case 'file':
+ case 'url':
$attribs['type'] = $this->mParams['type'];
break;
}