Bug 284950: DeCOMTaminate nsIContent::GetAttrNameAt

r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@186678 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cvshook%sicking.cc
2005-12-28 21:52:39 +00:00
parent dd63e82e49
commit cf43ff4e7d
34 changed files with 224 additions and 373 deletions

View File

@@ -83,6 +83,7 @@
#include "nsIPrincipal.h"
#include "nsIScriptSecurityManager.h"
#include "nsIScrollableView.h"
#include "nsAttrName.h"
#include "nsNetCID.h"
#include "nsIIOService.h"
@@ -1970,13 +1971,8 @@ nsHTMLDocument::OpenCommon(const nsACString& aContentType, PRBool aReplace)
// Remove all attributes from the root element
while (count-- > 0) {
nsCOMPtr<nsIAtom> name, prefix;
PRInt32 nsid;
root->GetAttrNameAt(count, &nsid, getter_AddRefs(name),
getter_AddRefs(prefix));
root->UnsetAttr(nsid, name, PR_FALSE);
const nsAttrName* name = root->GetAttrNameAt(count);
root->UnsetAttr(name->NamespaceID(), name->LocalName(), PR_FALSE);
}
// Remove the root from the childlist