Ticket #304 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

isChildNode regression fix, tests and patch

Reported by: simon.cusack@gmail.com Assigned to: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description

I'm not sure when it broke but I used to be able to call isChildNode on elements that were not part of the DOM and just have it return 'false'. This stopped working recently.

Also I noticed that (well at least for me anyway) that isChildNode was failing when the child was a text node.

The attached patch fixes these issues and contains a couple more DOM tests.

The patch is against Revision: 1368 and has been tested in FF2 and IE7.

Change History

05/06/08 01:23:25 changed by cederberg@gmail.com

  • status changed from new to closed.
  • resolution set to fixed.

The issue with elements not part of the DOM tree is fixed in [1369]. The issue with text nodes was fixed previously in [1333]. Thanks for the patch.