merging bug 16140, html namespace
git-svn-id: svn://10.0.0.236/branches/XSLTPROCESSOR_REFACTOR_20020630_BRANCH@129815 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "mozilladom.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsINodeInfo.h"
|
||||
|
||||
/**
|
||||
* Construct a wrapper with the specified Mozilla object and document owner.
|
||||
@@ -42,9 +43,10 @@ Element::Element(nsIDOMElement* aElement, Document* aOwner) :
|
||||
{
|
||||
nsCOMPtr<nsIContent> cont(do_QueryInterface(aElement));
|
||||
NS_ASSERTION(cont, "Element doesn't implement nsIContent");
|
||||
if (cont) {
|
||||
cont->GetNameSpaceID(mNamespaceID);
|
||||
}
|
||||
nsCOMPtr<nsINodeInfo> nodeInfo;
|
||||
cont->GetNodeInfo(*getter_AddRefs(nodeInfo));
|
||||
NS_ASSERTION(nodeInfo, "a element without nodeinfo");
|
||||
nodeInfo->GetNamespaceID(mNamespaceID);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user