* (bug 3421) Live preview no longer breaks user CSS/JS previews
* (bug 11264) The file logo on a file description page for documents (PDF, ...)
now links to the file rather than the file description page
+* Password fields built with HTMLForm now still have the type="password" attribute
+ if $wgHtml5=false.
== API changes in 1.16 ==
$attribs[$param] = '';
}
}
- if ( isset( $this->mParams['type'] ) ) {
+ }
+
+ # Implement tiny differences between some field variants
+ # here, rather than creating a new class for each one which
+ # is essentially just a clone of this one.
+ if ( isset( $this->mParams['type'] ) ) {
+ # Options that apply only to HTML5
+ if( $wgHtml5 ){
switch ( $this->mParams['type'] ) {
- case 'email':
- $attribs['type'] = 'email';
- break;
- case 'int':
- $attribs['type'] = 'number';
- break;
- case 'float':
- $attribs['type'] = 'number';
- $attribs['step'] = 'any';
- break;
+ case 'email':
+ $attribs['type'] = 'email';
+ break;
+ case 'int':
+ $attribs['type'] = 'number';
+ break;
+ case 'float':
+ $attribs['type'] = 'number';
+ $attribs['step'] = 'any';
+ break;
+ }
+ }
+ # Options that apply to HTML4 as well
+ switch( $this->mParams['type'] ){
case 'password':
$attribs['type'] = 'password';
break;
- }
}
}