Opened 11 years ago
Closed 11 years ago
#10853 closed bug (invalid)
children method is partially broken for ie8
Reported by: | Owned by: | ||
---|---|---|---|
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 11 years ago by
Component: | unfiled → traversing |
---|---|
Owner: | set to [email protected]… |
Priority: | undecided → low |
Status: | new → pending |
comment:2 Changed 11 years ago by
Status: | pending → 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 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
We can't really do anything without a test case, sorry.
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.