Project

Profile

Help

Bug #3369

closed

Incorrect test for node identity in p.genNode pattern matching

Added by Michael Kay over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2017-08-05
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

In pattern.js, the code for p.genNode tests (desc===item) to compare node identity. It should be domUtils.isSameNode(desc, item). This causes test match-098 to fail.

(For attributes, we create objects to represent attribute nodes "on demand", so two different Javascript objects might represent the same XDM node).

Actions #1

Updated by Debbie Lockett over 7 years ago

Fix also committed on Saxon-JS 1.0 branch.

Actions #2

Updated by Debbie Lockett over 7 years ago

  • Applies to JS Branch 1.0, Trunk added
Actions #3

Updated by Debbie Lockett over 7 years ago

  • Status changed from New to Resolved
  • Fix Committed on JS Branch 1.0, Trunk added

Marking resolved - fixes have been committed on both 1.0 and trunk branches; and test match-098 now passes.

Actions #4

Updated by Debbie Lockett about 7 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 1.0.2

Bug fix applied in Saxon-JS 1.0.2 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page