Index: trunk/phase3/includes/Html.php |
— | — | @@ -134,6 +134,9 @@ |
135 | 135 | unset( $attribs['type'] ); |
136 | 136 | } |
137 | 137 | } |
| 138 | + if ( $element == 'textarea' && isset( $attribs['maxlength'] ) ) { |
| 139 | + unset( $attribs['maxlength'] ); |
| 140 | + } |
138 | 141 | # Here we're blacklisting some HTML5-only attributes... |
139 | 142 | $html5attribs = array( |
140 | 143 | 'autocomplete', |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -218,7 +218,8 @@ |
219 | 219 | Xml::label( wfMsg( 'movereason' ), 'wpReason' ) . |
220 | 220 | "</td> |
221 | 221 | <td class='mw-input'>" . |
222 | | - Xml::tags( 'textarea', array( 'name' => 'wpReason', 'id' => 'wpReason', 'cols' => 60, 'rows' => 2 ), htmlspecialchars( $this->reason ) ) . |
| 222 | + Html::element( 'textarea', array( 'name' => 'wpReason', 'id' => 'wpReason', 'cols' => 60, 'rows' => 2, |
| 223 | + 'maxlength' => 200 ), $this->reason ) . |
223 | 224 | "</td> |
224 | 225 | </tr>" |
225 | 226 | ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -218,6 +218,7 @@ |
219 | 219 | ** Unnecessary type="" attribute removed for CSS and JS. |
220 | 220 | ** If $wgWellFormedXml is set to false, some bytes will be shaved off of HTML |
221 | 221 | output by omitting some things like quotation marks where HTML 5 allows. |
| 222 | +** (bug 16921) maxlength enabled for page move comments |
222 | 223 | * The description message in $wgExtensionCredits can be an array with parameters |
223 | 224 | * New hook SpecialRandomGetRandomTitle allows extensions to modify the selection |
224 | 225 | criteria used by Special:Random and subclasses, or substitute a custom result, |