Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 18 months 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.