http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76194
Revision: 76194 Author: happy-melon Date: 2010-11-06 15:14:04 +0000 (Sat, 06 Nov 2010) Log Message: ----------- Clarify doc, per r63675 CR. Modified Paths: -------------- trunk/phase3/includes/Xml.php Modified: trunk/phase3/includes/Xml.php =================================================================== --- trunk/phase3/includes/Xml.php 2010-11-06 15:13:48 UTC (rev 76193) +++ trunk/phase3/includes/Xml.php 2010-11-06 15:14:04 UTC (rev 76194) @@ -347,7 +347,10 @@ * Convenience function to build an HTML form label * @param $label String text of the label * @param $id - * @param $attribs Array, other attributes + * @param $attribs Array an attribute array. This will usuall be + * the same array as is passed to the corresponding input element, + * so this function will cherry-pick appropriate attributes to + * apply to the label as well; currently only class is applied. * @return string HTML */ public static function label( $label, $id, $attribs=array() ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs