Project

Profile

Help

Bug #5862

closed

Predicates.hasLocalName("") doesn't match unnamed nodes

Added by Michael Kay about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2023-01-27
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 11, 12, trunk
Fix Committed on Branch:
10, 11, 12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

The Javadoc for Predicates.hasLocalName() says that if the supplied name is an empty string, the predicate will match nodes having no name (for example a namespace node for the default namespace). This is not the case; the predicate returns false in this case.

Please register to edit this issue

Also available in: Atom PDF