Opened 15 years ago

Closed 14 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 15 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 15 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 15 years ago by david

comment:2 Changed 14 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.