From a759db37a02ad57eb41745ae3355e262ad5e16fd Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Thu, 2 May 2013 08:51:54 -0500 Subject: Updated the property to be for more semantics. --- src/HTML5/Elements.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php index 7819baf..238c574 100644 --- a/src/HTML5/Elements.php +++ b/src/HTML5/Elements.php @@ -31,7 +31,7 @@ class Elements { * The HTML5 elements as defined in http://dev.w3.org/html5/markup/elements.html. * @var array */ - public static $elements = array( + public static $html5 = array( "a" => 1, "abbr" => 1, "address" => 25, // NORMAL | VOID_TAG | AUTOCLOSE_P @@ -340,7 +340,7 @@ class Elements { // html5 element names are case insensetitive. Forcing lowercase for the check. // Do we need this check or will all data passed here already be lowercase? - return isset(self::$elements[strtolower($name)]); + return isset(self::$html5[strtolower($name)]); } /** @@ -393,8 +393,8 @@ class Elements { * Get the element mask for the given element name. */ public static function element($name) { - if (isset(self::$elements[$name])) { - return self::$elements[$name]; + if (isset(self::$html5[$name])) { + return self::$html5[$name]; } if (isset(self::$svg[$name])) { return self::$svg[$name]; -- cgit v1.2.3