[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml/xml
From: Peter Kelly <pmk () post ! com>
Date: 2003-02-08 7:43:09
[Download RAW message or body]
CVS commit by pmk:
fixed crash in importNode()
M +8 -3 dom_docimpl.cpp 1.220
--- kdelibs/khtml/xml/dom_docimpl.cpp #1.219:1.220
@@ -468,10 +468,15 @@ NodeImpl *DocumentImpl::importNode(NodeI
if(importedNode->nodeType() == Node::ELEMENT_NODE)
{
- ElementImpl *tempElementImpl = \
createElementNS(tempElementImpl->namespaceURI(), \
importedNode->nodeName());
- result = tempElementImpl;
-
ElementImpl *otherElem = static_cast<ElementImpl*>(importedNode);
DocumentImpl *otherDoc = importedNode->getDocument();
NamedAttrMapImpl *otherMap = static_cast<ElementImpl \
*>(importedNode)->attributes(true); +
+ ElementImpl *tempElementImpl;
+ if (!importedNode->localName().isNull())
+ tempElementImpl = \
createElementNS(otherElem->namespaceURI(),otherElem->nodeName()); + else
+ tempElementImpl = createElement(otherElem->nodeName());
+ result = tempElementImpl;
+
if(otherMap) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic