I was feeling feisty. Fixed in SVN rev 2728. Check a copy out of SVN to give it a try (but the test case passes).
--John On 8/15/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote: > @Stephan: That is actually the first site I went to (and go to often) when > I started running into the problem figure I was not following standards. > And I tried the prepend and prependTo and neither worked, but prepend > errored out where prependTo did not. > > @John: Will do, I want to experiment on a few more things to see if I can > find a work around, either way I will post it sometime tonight. > > @Erik: Are you suggesting we should change "write less. do more" to "doing > shady trickery so you don't have to." :) > > Thanks for your help guys. > > > On 8/15/07, Erik Beeson <[EMAIL PROTECTED]> wrote: > > "jQuery: doing shady trickery so you don't have to." > > > > --Erik > > > > > > > > > > On 8/15/07, John Resig <[EMAIL PROTECTED] > wrote: > > > > > > That being said, we have to do a lot of shady trickery to make > > > table-related things work properly. > > > > > > @Benjamin: You should file a bug on this: > > > http://dev.jquery.com/ > > > > > > --John > > > > > > On 8/15/07, Stephan Beal < [EMAIL PROTECTED]> wrote: > > > > > > > > On Aug 16, 3:56 am, "Benjamin Sterling" > > > > < [EMAIL PROTECTED]> wrote: > > > > > Hey, > > > > > I am trying to build a table dynamically, but jQuery keep erroring > out on > > > > > $('<table>').append('<caption>'); Is caption > supported? > > > > > $('<table>').append('<tbody>'); works fine. > > > > > > > > it's not jQuery which is ignoring your request. jQuery indirectly uses > > > > the browser's internal facilities for creating DOM trees, which means > > > > that the browser's engine is the one denying you. According to this > > > > site: > > > > > > > > http://www.w3schools.com/tags/tag_caption.asp > > > > > > > > the caption must be the first tag after TABLE, before TBODY (if any). > > > > But after some experimentation via their "try it" link, i couldn't get > > > > it to fail either way, but maybe konqueror is especially tollerant > > > > (i.e., not compliant) here. > > > > > > > > My guess is that when you create your <table> the TBODY is > > > > automatically getting added to it (someone posted complaining about > > > > that behaviour a few days ago), which means that your append(caption) > > > > will fail and your append(tbody) is actually NOT working because the > > > > tbody is already in the table when that is reached. But that's a > > > > guess. Try inspecting the dom after you create the table, before you > > > > append the caption/tbody. > > > > > > > > > > > > > > > > > > > > > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com