mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Bug 352583: Unregress XSLT from previous checkin. r/sr=jst
This commit is contained in:
parent
0fc1bb5f2e
commit
75e13e1fcc
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user