From c9b90792d47974e2b7fb2e4f3509e5fb1143e9f7 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Thu, 18 Jun 2015 10:54:55 -0400 Subject: The element mask is 0 rather than false if element not fount. --- src/HTML5/Elements.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php index b45de89..511da9d 100644 --- a/src/HTML5/Elements.php +++ b/src/HTML5/Elements.php @@ -557,7 +557,7 @@ class Elements * @param string $name * The name of the element. * - * @return int|bool The element mask or false if element does not exist. + * @return int The element mask. */ public static function element($name) { @@ -571,7 +571,7 @@ class Elements return static::$mathml[$name]; } - return false; + return 0; } /** -- cgit v1.2.3