3 // Table parts need to be wrapped with `<table>` or they're
4 // stripped to their contents when put in a div.
5 // XHTML parsers do not magically insert elements in the
6 // same way that tag soup parsers do, so we cannot shorten
7 // this by omitting <tbody> or other required elements.
9 col: [ "colgroup", "table" ],
10 tr: [ "tbody", "table" ],
11 td: [ "tr", "tbody", "table" ]
14 wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
15 wrapMap.th = wrapMap.td;