diff options
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r-- | src/cssparser.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 16efc487..5886a1e1 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -1430,12 +1430,7 @@ void CssParser::parseImport(DilloHtml *html, DilloUrl *baseUrl) else if (ttype == CSS_TK_STRING) urlStr = dStrdup (tval); - /* Skip all tokens until the expected end. */ - while (!(ttype == CSS_TK_END || - (ttype == CSS_TK_CHAR && (tval[0] == ';')))) - nextToken(); - - nextToken(); + ignoreStatement(); if (urlStr) { MSG("CssParser::parseImport(): @import %s\n", urlStr); |