blob: 457902595c34bd4107d5033eef23877354494e42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var wrapMap = {
// Table parts need to be wrapped with `<table>` 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 <tbody> 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;
export default wrapMap;
|