From 0454d03177ce7acf431a1b279a75f3db29b97561 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 4 May 2013 08:08:46 -0400 Subject: [PATCH] Fixed test break. --- framework/helpers/base/Html.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/helpers/base/Html.php b/framework/helpers/base/Html.php index 5b8e7db..3e7c7a2 100644 --- a/framework/helpers/base/Html.php +++ b/framework/helpers/base/Html.php @@ -95,9 +95,9 @@ class Html public static $attributeOrder = array( 'type', 'id', + 'class', 'name', 'value', - 'class', 'href', 'src', @@ -375,7 +375,8 @@ class Html */ public static function mailto($text, $email = null, $options = array()) { - return static::a($text, 'mailto:' . ($email === null ? $text : $email), $options); + $options['href'] = 'mailto:' . ($email === null ? $text : $email); + return static::tag('a', $text, $options); } /**