History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WET-208
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Sowmyashree
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WET

The Clone method of DomElementWrapper class hangs when both includeparents and includechildren is set to true

Created: 01/Sep/06 01:43 AM   Updated: 18/Jun/07 10:24 AM
Component/s: None
Affects Version/s: None
Fix Version/s: Future

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
The method ::
  DomElementWrapper.Clone( bool includeParent , bool includeChildren)

causes the test to abort when both includeParent and includeChildren options are set to true ...

The Clone method is called recursively on all the children of the current object , which inturn leads to many branch of the recursive loop , pushes the method into an infinite loop and results in a bad state ...
 Thus the process is terminated abruptly ..


Checking whether the "Object" is already cloned and calling clone method on the child objects which are not yet cloned OR
  By setting the IncludeParent option to false while calling the Clone method on the " child objects " will solve this problem ...

 All   Comments   Work Log   Change History      Sort Order:
Raghu Venkataramana - 23/Mar/07 03:38 AM
Only seems to causing problems in the unit tests.