Bug Tracker

Ticket #10853 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

children method is partially broken for ie8

Reported by: mbj@… Owned by: mbj@…
Priority: low Milestone: None
Component: traversing Version: 1.7
Keywords: Cc:
Blocking: Blocked by:


Children() is implemented by looping over nextSibling on firstChild.

In ie8 document.body.children and looping over nextSibling of document.body.firstChild does not consistently yield the same result, when there are dynamically injected elements, with document.body.children giving the correct list.

Caveat: It is not consistent behavior and can be hard to reproduce. Right now I can only reproduce it in a closed testing environment at my current clients, and I cannot share it, but thought I'd report it anyway

Change History

comment:1 Changed 4 years ago by timmywil

  • Owner set to mbj@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to traversing

Thanks for taking the time to contribute to the jQuery project!

It's hard to help unless the issue can be reproduced. Please provide a test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:2 Changed 4 years ago by mbj@…

  • Status changed from pending to new

As already stated it is not consistent behavior and hard to reproduce. If i could reproduce it on jsfiddle you'd be the first to see it, alas i cannot.

comment:3 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

We can't really do anything without a test case, sorry.

Note: See TracTickets for help on using tickets.