We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dca125 commit c9b9079Copy full SHA for c9b9079
2 files changed
src/HTML5/Elements.php
@@ -557,7 +557,7 @@ public static function isElement($name)
557
* @param string $name
558
* The name of the element.
559
*
560
- * @return int|bool The element mask or false if element does not exist.
+ * @return int The element mask.
561
*/
562
public static function element($name)
563
{
@@ -571,7 +571,7 @@ public static function element($name)
571
return static::$mathml[$name];
572
}
573
574
- return false;
+ return 0;
575
576
577
/**
test/HTML5/ElementsTest.php
@@ -351,7 +351,7 @@ public function testElement()
351
'baz'
352
);
353
foreach ($nonhtml5 as $element) {
354
- $this->assertFalse(Elements::element($element));
+ $this->assertEquals(0, Elements::element($element));
355
356
357
0 commit comments