Bug 352583: Unregress XSLT from previous checkin. r/sr=jst

This commit is contained in:
cvshook%sicking.cc 2006-09-18 19:07:34 +00:00
parent 0fc1bb5f2e
commit 75e13e1fcc

View File

@ -550,11 +550,17 @@ txXPathNodeUtils::appendNodeValue(const txXPathNode& aNode, nsAString& aResult)
return;
}
nsINode* node = aNode.isDocument() ?
NS_STATIC_CAST(nsINode*, aNode.mDocument) :
NS_STATIC_CAST(nsINode*, aNode.mContent);
if (aNode.isDocument() ||
aNode.mContent->IsNodeOfType(nsINode::eELEMENT)) {
nsINode* node = aNode.isDocument() ?
NS_STATIC_CAST(nsINode*, aNode.mDocument) :
NS_STATIC_CAST(nsINode*, aNode.mContent);
nsContentUtils::AppendNodeTextContent(node, PR_TRUE, aResult);
nsContentUtils::AppendNodeTextContent(node, PR_TRUE, aResult);
return;
}
aNode.mContent->AppendTextTo(aResult);
}
/* static */