We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 897eb51 commit d1a9db6Copy full SHA for d1a9db6
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