aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/jquery/src/manipulation/wrapMap.js
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/jquery/src/manipulation/wrapMap.js')
-rw-r--r--bower_components/jquery/src/manipulation/wrapMap.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/bower_components/jquery/src/manipulation/wrapMap.js b/bower_components/jquery/src/manipulation/wrapMap.js
new file mode 100644
index 0000000..d40685a
--- /dev/null
+++ b/bower_components/jquery/src/manipulation/wrapMap.js
@@ -0,0 +1,30 @@
+define( [
+ "./support"
+], function( support ) {
+
+// We have to close these tags to support XHTML (#13200)
+var wrapMap = {
+ option: [ 1, "<select multiple='multiple'>", "</select>" ],
+ legend: [ 1, "<fieldset>", "</fieldset>" ],
+ area: [ 1, "<map>", "</map>" ],
+
+ // Support: IE8
+ param: [ 1, "<object>", "</object>" ],
+ thead: [ 1, "<table>", "</table>" ],
+ tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+ col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
+ td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+
+ // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
+ // unless wrapped in a div with non-breaking characters in front of it.
+ _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
+};
+
+// Support: IE8-IE9
+wrapMap.optgroup = wrapMap.option;
+
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+return wrapMap;
+} );