bug 324182: Update the token's attribute count when we add a token to it. r=sicking sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@187927 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2006-01-20 23:25:37 +00:00
parent 1f171ff718
commit 7f9036eb3c

View File

@@ -1054,6 +1054,9 @@ CNavDTD::WillHandleStartTag(CToken* aToken, eHTMLTags aTag,
if (theToken) {
theToken->SetKey(NS_LITERAL_STRING("_moz-userdefined"));
aNode.AddAttribute(theToken);
// Make sure to remember that we added this attribute.
aToken->SetAttributeCount(aNode.GetAttributeCount());
}
}