summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/HTML5/Elements.php4
-rw-r--r--test/HTML5/ElementsTest.php2
2 files changed, 3 insertions, 3 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;
}
/**
diff --git a/test/HTML5/ElementsTest.php b/test/HTML5/ElementsTest.php
index f4b377a..d426aef 100644
--- a/test/HTML5/ElementsTest.php
+++ b/test/HTML5/ElementsTest.php
@@ -351,7 +351,7 @@ class ElementsTest extends TestCase
'baz'
);
foreach ($nonhtml5 as $element) {
- $this->assertFalse(Elements::element($element));
+ $this->assertEquals(0, Elements::element($element));
}
}