diff options
author | Asmir Mustafic <[email protected]> | 2018-11-24 19:51:13 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2018-11-24 19:51:13 +0100 |
commit | 054b1fe0392f35ecc4004a90e0fcf4e400259b25 (patch) | |
tree | 7639e64222f8f73fc3b32792bbecd930a8071f91 /src/HTML5 | |
parent | 1fd419b9e62efcab9c79f3848c54dd3717a7e725 (diff) | |
parent | ae525e6ae96da4d459bd66012d39b92a572502ae (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.php | 4 |
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; } |