Bug Tracker

Opened 6 years ago

Closed 6 years ago

#10853 closed bug (invalid)

children method is partially broken for ie8

Reported by: mbj@… Owned by: mbj@…
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

Change History (3)

comment:1 Changed 6 years ago by timmywil

Component: unfiledtraversing
Owner: set to mbj@…
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.

comment:2 Changed 6 years ago by mbj@…

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.

comment:3 Changed 6 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.