File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
16
16
rscriptTypeMasked = / ^ t r u e \/ ( .* ) / ,
17
17
rcleanScript = / ^ \s * < ! (?: \[ C D A T A \[ | \- \- ) / ,
18
18
wrapMap = {
19
- option : [ 1 , "<select multiple='multiple'>" , "</select>" ] ,
20
19
legend : [ 1 , "<fieldset>" , "</fieldset>" ] ,
21
20
thead : [ 1 , "<table>" , "</table>" ] ,
22
21
tr : [ 2 , "<table><tbody>" , "</tbody></table>" ] ,
@@ -26,10 +25,14 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
26
25
_default : [ 0 , "" , "" ]
27
26
} ;
28
27
29
- wrapMap . optgroup = wrapMap . option ;
30
28
wrapMap . tbody = wrapMap . tfoot = wrapMap . colgroup = wrapMap . caption = wrapMap . thead ;
31
29
wrapMap . th = wrapMap . td ;
32
30
31
+ // Support: IE <=9 only
32
+ if ( ! jQuery . support . option ) {
33
+ wrapMap . optgroup = wrapMap . option = [ 1 , "<select multiple='multiple'>" , "</select>" ] ;
34
+ }
35
+
33
36
// IE can't serialize <link> and <script> tags normally
34
37
if ( ! jQuery . support . htmlSerialize ) {
35
38
wrapMap . _default = [ 1 , "div<div>" , "</div>" ] ;
You can’t perform that action at this time.
0 commit comments