Bug 389685 - "Empty style attribute generates strange css warning" [p=elif (sharparrow1) r+sr+a1.9=dbaron]

This commit is contained in:
reed@reedloden.com 2007-10-03 20:20:36 -07:00
Родитель dd74245928
Коммит 5e226aef23
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -814,8 +814,7 @@ CSSParserImpl::ParseStyleAttribute(const nsAString& aAttributeValue,
// In quirks mode, allow style declarations to have braces or not
// (bug 99554).
PRBool haveBraces;
if (mNavQuirkMode) {
GetToken(errorCode, PR_TRUE);
if (mNavQuirkMode && GetToken(errorCode, PR_TRUE)) {
haveBraces = eCSSToken_Symbol == mToken.mType &&
'{' == mToken.mSymbol;
UngetToken();