Modify ↓
Ticket #8073 (closed bug: invalid)
jQuery function can't create this specific dom in IE8.
| Reported by: | hesam.faraji@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
to find out the bug, just run code bellow.
var myTable = $("<table><tr><td></td></tr><tr><td></td></tr></table>")
.appendTo(container) // container is a div element
.width(110)
.height(200)
.find("td:first")
.height(75)
.end()
.find("td:nth(1)")
.height(125);
alert($("td:first", myTable).size()); // incurrectly alerts 0 instead of 1.
Change History
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 by writing a bug report. But this code won't work in any browser. At the end of your manipulations myTable doesn't contain the table but a td element. You are probably missing a .end() at the end of your chain.
Please always try extra hard to check you didn't make a mistake before reporting something as a bug as the jQuery bug tracker is not for support requests.
If you are not really sure you found a bug please first try the #jquery irc channel on freenode or use the jQuery Forum for help to make sure it isn't just a simple error in the code.