1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-04 21:47:37 +00:00

LibHTML: The CSS parser should tolerate whitespace-only stylesheets

This commit is contained in:
Andreas Kling 2019-10-20 12:26:09 +02:00
parent 9eaaaeec6e
commit ea5da0f9b5

View file

@ -345,6 +345,10 @@ public:
void parse_rule()
{
consume_whitespace_or_comments();
if (index >= css.length())
return;
// FIXME: We ignore @media rules for now.
if (next_is("@media")) {
while (peek() != '{')