From 56d27f0a542c653b7ee1be85f6480056801989d7 Mon Sep 17 00:00:00 2001 From: "axel%pike.org" Date: Tue, 17 Sep 2002 20:30:36 +0000 Subject: [PATCH] merging bug 16140, html namespace git-svn-id: svn://10.0.0.236/branches/XSLTPROCESSOR_REFACTOR_20020630_BRANCH@129815 18797224-902f-48f8-a5cc-f745e15eee43 --- .../source/xml/dom/mozImpl/MozillaElement.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/extensions/transformiix/source/xml/dom/mozImpl/MozillaElement.cpp b/mozilla/extensions/transformiix/source/xml/dom/mozImpl/MozillaElement.cpp index 7603ecc13bd..fd5dd3ce325 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/mozImpl/MozillaElement.cpp +++ b/mozilla/extensions/transformiix/source/xml/dom/mozImpl/MozillaElement.cpp @@ -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 cont(do_QueryInterface(aElement)); NS_ASSERTION(cont, "Element doesn't implement nsIContent"); - if (cont) { - cont->GetNameSpaceID(mNamespaceID); - } + nsCOMPtr nodeInfo; + cont->GetNodeInfo(*getter_AddRefs(nodeInfo)); + NS_ASSERTION(nodeInfo, "a element without nodeinfo"); + nodeInfo->GetNamespaceID(mNamespaceID); } /**