Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp

Issue 2646493002: '*' is not a valid attribute selector (Closed)
Patch Set: Adjust serialization test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
index 221797dff6d4a53bbf842a89442dedd7eca8807f..6de81c9678ca37942f584890d5f617da8a48b3d8 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
@@ -375,6 +375,8 @@ std::unique_ptr<CSSParserSelector> CSSSelectorParser::consumeAttribute(
AtomicString attributeName;
if (!consumeName(block, attributeName, namespacePrefix))
return nullptr;
+ if (attributeName == starAtom)
+ return nullptr;
block.consumeWhitespace();
if (m_context->isHTMLDocument())

Powered by Google App Engine
This is Rietveld 408576698