diff --git a/mozilla/htmlparser/src/CNavDTD.cpp b/mozilla/htmlparser/src/CNavDTD.cpp index 1bbb9248abe..cea970cb7b3 100644 --- a/mozilla/htmlparser/src/CNavDTD.cpp +++ b/mozilla/htmlparser/src/CNavDTD.cpp @@ -1691,6 +1691,13 @@ nsresult CNavDTD::CollectAttributes(nsCParserNode& aNode,eHTMLTags aTag,PRInt32 theToken=(CToken*)mSkippedContent.PopFront(); else theToken=mTokenizer->PopToken(); if(theToken) { + CAttributeToken* theAttrToken = ((CAttributeToken*)theToken); + nsString& key=theAttrToken->GetKey(); + // Sanitize the key for it might contain some non-alpha-non-digit characters + // at its end. Ex.