summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Coevoet <[email protected]>2018-11-24 20:55:34 +0100
committerChristophe Coevoet <[email protected]>2018-11-26 12:33:58 +0100
commit1e58def01d8ef2ee773a989b7f738f232088a674 (patch)
treeb6758be785e89b228861569eb7627451801a5cfc /src
parent4c337c89096d9acb798f68201d2b124860d1616e (diff)
Remove useless condition for the parsing of cdata
The caller already ensures that the current token is the right one.
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Parser/Tokenizer.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php
index bba6ff2..9f3d7bd 100644
--- a/src/HTML5/Parser/Tokenizer.php
+++ b/src/HTML5/Parser/Tokenizer.php
@@ -865,9 +865,6 @@ class Tokenizer
*/
protected function cdataSection()
{
- if ('[' != $this->scanner->current()) {
- return false;
- }
$cdata = '';
$this->scanner->consume();