From 828247f2cdb05e191b2bca534198cd19a8ebfe82 Mon Sep 17 00:00:00 2001 From: awjrichards Date: Tue, 17 Apr 2012 16:04:24 -0700 Subject: [PATCH] (bug 36049) placeholder attrib for HTMLForm Textarea Change-Id: I671b4869ef30734c4bfb0c2beed3841f90ab5d16 --- includes/HTMLForm.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index ebaac3cc17..ec1507cf98 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1306,6 +1306,10 @@ class HTMLTextAreaField extends HTMLFormField { $attribs['readonly'] = 'readonly'; } + if ( !empty( $this->mParams['placeholder'] ) ) { + $attribs['placeholder'] = $this->mParams['placeholder']; + } + foreach ( array( 'required', 'autofocus' ) as $param ) { if ( isset( $this->mParams[$param] ) ) { $attribs[$param] = ''; -- 2.20.1