summaryrefslogtreecommitdiff
path: root/src/HTML5
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2018-11-24 19:51:13 +0100
committerGitHub <[email protected]>2018-11-24 19:51:13 +0100
commit054b1fe0392f35ecc4004a90e0fcf4e400259b25 (patch)
tree7639e64222f8f73fc3b32792bbecd930a8071f91 /src/HTML5
parent1fd419b9e62efcab9c79f3848c54dd3717a7e725 (diff)
parentae525e6ae96da4d459bd66012d39b92a572502ae (diff)
Merge pull request #157 from stof/optimize_parsing
Optimize the check for the element types during parsing
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;
}