Table created with DOM2 methods is not displayed

When creating a table dynamically and inserting table rows with table data cells and text nodes and add it to the document tree, it is not displayed at all when you don't include a <tbody> tag. W3C DOM2 methods are used.

(ppknote: Test case does not work in Safari)

Test page Workaround is included
Reported by: Gunnar Vestergaard.

Explorer 5-6 Windows, Explorer 7, Explorer Mac | Reported on 26 September 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Charles Fahey on 21 June 2006 | Permalink

Just an FYI - Having encountered this bug myself, I performed an innerHTML dump of an entire table after appending a new row. It appears that if you don't create the tbody tag yourself, IE6 creates it for you - but doesn't close it. The result is a table with an open tbody tag at the top. I suspect this is why it doesn't display.