diff --git a/lib/Sabberworm/CSS/Parser.php b/lib/Sabberworm/CSS/Parser.php index eea13853..adc0d390 100644 --- a/lib/Sabberworm/CSS/Parser.php +++ b/lib/Sabberworm/CSS/Parser.php @@ -113,7 +113,7 @@ private function parseList(CSSList $oList, $bIsRoot = false) { } $this->consumeWhiteSpace(); } - if (!$bIsRoot) { + if (!$bIsRoot && !$this->oParserSettings->bLenientParsing) { throw new SourceException("Unexpected end of document", $this->iLineNo); } }