зеркало из https://github.com/mozilla/pjs.git
Bug 352583: Unregress XSLT from previous checkin. r/sr=jst
This commit is contained in:
Родитель
83b24e12f4
Коммит
0b0231e321
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче