wrapMap.js 767 B

123456789101112131415161718192021222324252627
  1. define( function() {
  2. // We have to close these tags to support XHTML (#13200)
  3. var wrapMap = {
  4. // Support: IE9
  5. option: [ 1, "<select multiple='multiple'>", "</select>" ],
  6. // XHTML parsers do not magically insert elements in the
  7. // same way that tag soup parsers do. So we cannot shorten
  8. // this by omitting <tbody> or other required elements.
  9. thead: [ 1, "<table>", "</table>" ],
  10. col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
  11. tr: [ 2, "<table><tbody>", "</tbody></table>" ],
  12. td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
  13. _default: [ 0, "", "" ]
  14. };
  15. // Support: IE9
  16. wrapMap.optgroup = wrapMap.option;
  17. wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
  18. wrapMap.th = wrapMap.td;
  19. return wrapMap;
  20. } );