summaryrefslogtreecommitdiff
path: root/src/HTML5
diff options
context:
space:
mode:
authorChristophe Coevoet <[email protected]>2018-11-24 14:43:18 +0100
committerChristophe Coevoet <[email protected]>2018-11-24 14:46:15 +0100
commitae525e6ae96da4d459bd66012d39b92a572502ae (patch)
tree7639e64222f8f73fc3b32792bbecd930a8071f91 /src/HTML5
parent1fd419b9e62efcab9c79f3848c54dd3717a7e725 (diff)
Optimize the check for the element types during adding.
Diffstat (limited to 'src/HTML5')
-rw-r--r--src/HTML5/Elements.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/HTML5/Elements.php b/src/HTML5/Elements.php
index 511da9d..6a46f5a 100644
--- a/src/HTML5/Elements.php
+++ b/src/HTML5/Elements.php
@@ -485,10 +485,6 @@ class Elements
*/
public static function isA($name, $mask)
{
- if (! static::isElement($name)) {
- return false;
- }
-
return (static::element($name) & $mask) == $mask;
}