Skip to content Skip to sidebar Skip to footer

No Automated Tbody With CreateElement/appendChild?

Creating a table without tbody using javascript createElement/appendChild will not add tbody in Firebug but using innerHTML will do it. Why? Should we add the tbody manually?

Solution 1:

Because the start and end tags for the tbody element are optional. You bypass tag insertion by manipulating DOM nodes directly.

Should we add the tbody manually?

That's somewhat subjective.


Post a Comment for "No Automated Tbody With CreateElement/appendChild?"