Fix for bug 151002 (abstract the content by a treewalker). Patch by me, with parts by Pike and sicking. r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@149516 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -317,11 +317,11 @@ nsresult txPatternParser::createStepPattern(txExprLexer& aLexer,
|
||||
}
|
||||
if (isAttr) {
|
||||
nodeTest = new txNameTest(prefix, lName, nspace,
|
||||
Node::ATTRIBUTE_NODE);
|
||||
txXPathNodeType::ATTRIBUTE_NODE);
|
||||
}
|
||||
else {
|
||||
nodeTest = new txNameTest(prefix, lName, nspace,
|
||||
Node::ELEMENT_NODE);
|
||||
txXPathNodeType::ELEMENT_NODE);
|
||||
}
|
||||
if (!nodeTest) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
Reference in New Issue
Block a user