/application/static/libs/adminlte/bower_components/jquery/src/manipulation/wrapMap.js

https://bitbucket.org/tin_gimranoff/docstar · JavaScript · 29 lines · 15 code · 8 blank · 6 comment · 0 complexity · bd6bd7cfc997ee4dbe32d0f46719b9a6 MD5 · raw file

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