Opened 16 years ago

Closed 16 years ago

#315 closed defect (worksforme)

hasChildNodes() Returns true Too Many Times

Reported by: [email protected] Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.2
Keywords: hisChildNodes, moveChildren Cc:
Blocked By: Blocking:


With reference to Ticket #314 ( it seems that in the moveChildren method the call to hasChildNodes() returns true one time too many. For example a node with 3 children will have hasChildNodes() return true four times.

Attachments (1)

ticket315-hasChildNodes.html (516 bytes) - added by david 16 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 16 years ago by david

My guess is that you are getting the text nodes which can live between nodes (at least in Firefox). See attached for an example.

Changed 16 years ago by david

comment:2 Changed 16 years ago by dylan

Resolution: worksforme
Status: newclosed

no response in 6 months, and it works for me, so closing.

Note: See TracTickets for help on using tickets.