blob: da48bf9fedb103cc030719e6645d89c2f379a22f [file] [log] [blame]
Renovate botf591dcf2023-12-30 14:13:54 +00001define( [
2 "./support"
3], function( support ) {
Copybara botbe50d492023-11-30 00:16:42 +01004
5"use strict";
6
7// We have to close these tags to support XHTML (#13200)
8var wrapMap = {
9
Copybara botbe50d492023-11-30 00:16:42 +010010 // XHTML parsers do not magically insert elements in the
11 // same way that tag soup parsers do. So we cannot shorten
12 // this by omitting <tbody> or other required elements.
13 thead: [ 1, "<table>", "</table>" ],
14 col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
15 tr: [ 2, "<table><tbody>", "</tbody></table>" ],
16 td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
17
18 _default: [ 0, "", "" ]
19};
20
Copybara botbe50d492023-11-30 00:16:42 +010021wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
22wrapMap.th = wrapMap.td;
23
Renovate botf591dcf2023-12-30 14:13:54 +000024// Support: IE <=9 only
25if ( !support.option ) {
26 wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
27}
28
Copybara botbe50d492023-11-30 00:16:42 +010029return wrapMap;
30} );