From 1ca41c10cd11c28697190c7c4720ba210d67185c Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 6 Nov 2010 15:14:04 +0000 Subject: [PATCH] Clarify doc, per r63675 CR. --- includes/Xml.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Xml.php b/includes/Xml.php index 8b5671cd99..65f20109a1 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -347,7 +347,10 @@ class Xml { * 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() ) { -- 2.20.1