sp-magic.de/bower_components/jquery/src/manipulation/wrapMap.js

30 lines
798 B
JavaScript
Raw Normal View History

2016-10-28 17:56:41 +00:00
define( function() {
2016-11-22 23:12:51 +00:00
"use strict";
2016-10-28 17:56:41 +00:00
// We have to close these tags to support XHTML (#13200)
var wrapMap = {
2016-11-22 23:12:51 +00:00
// Support: IE <=9 only
2016-10-28 17:56:41 +00:00
option: [ 1, "<select multiple='multiple'>", "</select>" ],
// 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: [ 1, "<table>", "</table>" ],
col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
_default: [ 0, "", "" ]
};
2016-11-22 23:12:51 +00:00
// Support: IE <=9 only
2016-10-28 17:56:41 +00:00
wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
return wrapMap;
} );