| Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| index f22d087d3a5e2aa4b325bde047ed67d1d604a5d7..7e2f1dfc3846391f51c857ec9007cddb6f844390 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -2326,11 +2326,7 @@ static CSSValue* consumeAttr(CSSParserTokenRange args, CSSParserContext context)
|
| return nullptr;
|
|
|
| String attrName = args.consumeIncludingWhitespace().value();
|
| - // CSS allows identifiers with "-" at the start, like "-webkit-mask-image".
|
| - // But HTML attribute names can't have those characters, and we should not
|
| - // even parse them inside attr().
|
| - // TODO(timloh): We should allow any <ident-token> here.
|
| - if (attrName[0] == '-' || !args.atEnd())
|
| + if (!args.atEnd())
|
| return nullptr;
|
|
|
| if (context.isHTMLDocument())
|
|
|