We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d71fbc4 + d1a9db6 commit 3c5d5a5Copy full SHA for 3c5d5a5
1 file changed
src/HTML5/Parser/Tokenizer.php
@@ -131,7 +131,10 @@ protected function consumeData()
131
132
$tok = $this->scanner->next();
133
134
- if ('!' === $tok) {
+ if (false === $tok) {
135
+ // end of string
136
+ $this->parseError('Illegal tag opening');
137
+ } elseif ('!' === $tok) {
138
$this->markupDeclaration();
139
} elseif ('/' === $tok) {
140
$this->endTag();
0 commit comments