and if the injected html is completely valid it works ? Alexandre Plennevaux
On Thu, Jun 26, 2008 at 5:10 PM, c2h5oh <[EMAIL PROTECTED]> wrote: > > After another couple hours & coffees I found out that if I use > $.html(val) to insert invalid html (invalid as in does not validate) > no content will be shown, as if it had display:hidden. > code like this is enough: > > var someval = '<table> > <tr> > <td>one </td><td> two</td> > </tr> > <tr> > <td>three</td><td>four > </tr> > </table>'; > > should I try to $(".someclass").html(someval); it will be properly > inserted, but will not be displayed. Not even 'one', 'two' or 'three'. > It is FF (2 and 3, haven't tested with 1) specific - will work just > fine in opera 9.2, ie6 and ie7. Tested only with 1.2.6. > -- Alexandre Plennevaux LAb[au] http://www.lab-au.com