diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-11-15 23:09:50 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-11-15 23:09:50 +0100 |
commit | 46b977f6c5eb0bdf98b0cfe3632e9f6d0d75ed8e (patch) | |
tree | 7d26c268d8fadf049201f43529f79dfec8a1799e | |
parent | 85d67bb744843d95121213485b791e0637a2e91b (diff) |
ignore empty CSS class or id selectors
Testcase:
<html>
<head>
<style type=text/css>
. {color: red}
</style>
</head>
<body>
<div>hello</div>
</body>
</html>
-rw-r--r-- | src/cssparser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 9428254f..eda45472 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -1257,7 +1257,7 @@ bool CssParser::parseSimpleSelector(CssSimpleSelector *selector) if (selectType != CssSimpleSelector::SELECT_NONE) { nextToken(); if (spaceSeparated) - return true; + return false; if (ttype == CSS_TK_SYMBOL) { selector->setSelect (selectType, tval); |