export var wrapMap = { // Table parts need to be wrapped with `` or they're // stripped to their contents when put in a div. // XHTML parsers do not magically insert elements in the // same way that tag soup parsers do, so we cannot shorten // this by omitting or other required elements. thead: [ "table" ], col: [ "colgroup", "table" ], tr: [ "tbody", "table" ], td: [ "tr", "tbody", "table" ] }; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td;