This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6367 - Parent property after copy (e.g. id-transform-expr-057)
Summary: Parent property after copy (e.g. id-transform-expr-057)
Status: CLOSED FIXED
Alias: None
Product: XQuery Update Facility Test Suite
Classification: Unclassified
Component: XQuery Update Facility Test Suite (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 11:18 UTC by Peter M. Fischer
Modified: 2009-01-08 08:50 UTC (History)
0 users

See Also:


Attachments

Description Peter M. Fischer 2009-01-06 11:18:27 UTC
Is the parent node property of $node preserved when doing a copy to $node? 

The spec is not totally clear, saying that
"The parent, children, and attributes properties of the copied nodes are
set so as to preserve their inter-node relationships." 

My assumption would be that $node does not have a parent, since this parent should have $node as a child, which -to me- does not really make sense. 

If this is true, id-transform-expr-057 will not give an error about replacing the same node twice, but replacing a node without a parent (See also XQuery
Update Facility, 2.4.3.1, 2c))
Comment 1 Andrew Eisenberg 2009-01-07 16:37:12 UTC
Like you, I believe that the parent node property of a node is not preserved when doing a copy. This could be made a bit clearer. You might want to raise this is an issue against the Update Facility specification.

I've modified id-transform-expr-057 to attempt conflicting replace operations on nodes with parents.

Please close this bug report if you agree with this resolution.