Skip to content

Commit ae525e6

Browse files
committed
Optimize the check for the element types during adding.
1 parent 1fd419b commit ae525e6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/HTML5/Elements.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,6 @@ class Elements
485485
*/
486486
public static function isA($name, $mask)
487487
{
488-
if (! static::isElement($name)) {
489-
return false;
490-
}
491-
492488
return (static::element($name) & $mask) == $mask;
493489
}
494490

0 commit comments

Comments
 (0)