Side navigation
#8073 closed bug (invalid)
Opened January 27, 2011 11:34AM UTC
Closed January 27, 2011 05:50PM UTC
Last modified January 27, 2011 06:08PM UTC
jQuery function can't create this specific dom in IE8.
Reported by: | hesam.faraji@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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.
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 atd
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.