From 64704cf5c46539688e473dc41b2dc625e2d2bb9b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 5 Jul 2011 06:58:27 -0700 Subject: [PATCH] Added comments to HTML class. --- system/html.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/html.php b/system/html.php index 13c88fa7..18a680bd 100644 --- a/system/html.php +++ b/system/html.php @@ -146,6 +146,7 @@ public static function email($email) public static function image($url, $alt = '', $attributes = array()) { $attributes['alt'] = static::entities($alt); + return ''; } @@ -205,6 +206,11 @@ public static function attributes($attributes) foreach ($attributes as $key => $value) { + // ------------------------------------------------------- + // If the attribute key is numeric, assign the attribute + // value to the key. This allows for attributes such as + // "required", "checked", etc. + // ------------------------------------------------------- if (is_numeric($key)) { $key = $value;