Tuesday, October 03, 2006

Inserting a table via DOM in Internet Explorer

I just wasted two hours of my life trying to find out why a table I'd build up using DOM methods wasn't displaying in IE. I was building a table like this: ..but my table wasn't showing in IE (Firefox was fine). I could and see my table source, and unbelieveably, if I did a my table would show up (but any events were lost). Well it turns out that if you don't explicitly add a tbody element, IE won't show your table. I found that out here. Grr!

This page is powered by Blogger. Isn't yours?