Attribute axis should not include namespace declarations.

b=123357 r=peterv sr=jst
This commit is contained in:
sicking%bigfoot.com 2002-06-16 16:58:13 +00:00
Родитель 62e25755e2
Коммит 1c08ef6d4f
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,8 @@ ExprResult* LocationStep::evaluate(txIEvalContext* aContext)
if (atts) {
for (PRUint32 i = 0; i < atts->getLength(); i++) {
Node* attr = atts->item(i);
if (mNodeTest->matches(attr, aContext))
if (attr->getNamespaceID() != kNameSpaceID_XMLNS &&
mNodeTest->matches(attr, aContext))
nodes->append(attr);
}
}