Skip to main content

Bug Tracker

Side navigation

#10853 closed bug (invalid)

Opened November 22, 2011 09:30AM UTC

Closed November 24, 2011 08:26PM UTC

children method is partially broken for ie8

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

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

Attachments (0)
Change History (3)

Changed November 22, 2011 02:36PM UTC by timmywil comment:1

component: unfiledtraversing
owner: → mbj@mbj.dk
priority: undecidedlow
status: newpending

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.

Changed November 24, 2011 06:49PM UTC by mbj@mbj.dk comment:2

status: pendingnew

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.

Changed November 24, 2011 08:26PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

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