summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2015-06-18 10:54:55 -0400
committerAsmir Mustafic <[email protected]>2018-11-23 09:26:54 +0100
commitc9b90792d47974e2b7fb2e4f3509e5fb1143e9f7 (patch)
treefb5c13182f684656b96ef3a06ca797e158124f40 /src
parent8dca125a4c05b20d906058b165cf9782cb45d4fa (diff)
The element mask is 0 rather than false if element not fount.
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Elements.php4
1 files changed, 2 insertions, 2 deletions
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;
}
/**