We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 901cda1 commit 48e99f6Copy full SHA for 48e99f6
lib/Sabberworm/CSS/Parsing/ParserState.php
@@ -119,8 +119,7 @@ public function consumeWhiteSpace() {
119
if($this->oParserSettings->bLenientParsing) {
120
try {
121
$oComment = $this->consumeComment();
122
- } catch(UnexpectedTokenException $e) {
123
- // When we can’t find the end of a comment, we assume the document is finished.
+ } catch(UnexpectedEOFException $e) {
124
$this->iCurrentPosition = $this->iLength;
125
return;
126
}
0 commit comments