Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8073 closed bug (invalid)

jQuery function can't create this specific dom in IE8.

Reported by: [email protected] Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:


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

    alert($("td:first", myTable).size()); // incurrectly alerts 0 instead of 1.

Change History (2)

comment:1 Changed 12 years ago by jitter

Resolution: invalid
Status: newclosed

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.

comment:2 Changed 12 years ago by ajpiano

There is no ":nth" pseudoselector .. it's :nth-child or :eq

Note: See TracTickets for help on using tickets.