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:
peter%propagandism.org
2003-11-18 22:57:04 +00:00
parent 3e62236f1f
commit 5fdda1cac6
65 changed files with 1433 additions and 1268 deletions

View File

@@ -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;