1111 * Copyright 2011, The Dojo Foundation
1212 * Released under the MIT, BSD, and GPL Licenses.
1313 *
14- * Date: Mon Dec 11 15:41:51 2023 -0600
14+ * Date: Mon Dec 11 16:03:03 2023 -0600
1515 */
1616( function ( window , undefined ) {
1717
@@ -1403,6 +1403,12 @@ jQuery.support = (function() {
14031403 }
14041404 }
14051405
1406+ // Support: IE <=9 only
1407+ // IE <=9 replaces <option> tags with their contents when inserted outside of
1408+ // the select element.
1409+ div . innerHTML = "<option></option>" ;
1410+ support . option = ! ! div . lastChild ;
1411+
14061412 // Null connected elements to avoid leaks in IE
14071413 testElement = fragment = select = opt = body = marginDiv = div = input = null ;
14081414
@@ -5540,7 +5546,6 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
55405546 rscriptType = / \/ ( j a v a | e c m a ) s c r i p t / i,
55415547 rcleanScript = / ^ \s * < ! (?: \[ C D A T A \[ | \- \- ) / ,
55425548 wrapMap = {
5543- option : [ 1 , "<select multiple='multiple'>" , "</select>" ] ,
55445549 legend : [ 1 , "<fieldset>" , "</fieldset>" ] ,
55455550 thead : [ 1 , "<table>" , "</table>" ] ,
55465551 tr : [ 2 , "<table><tbody>" , "</tbody></table>" ] ,
@@ -5550,10 +5555,14 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
55505555 _default : [ 0 , "" , "" ]
55515556 } ;
55525557
5553- wrapMap . optgroup = wrapMap . option ;
55545558wrapMap . tbody = wrapMap . tfoot = wrapMap . colgroup = wrapMap . caption = wrapMap . thead ;
55555559wrapMap . th = wrapMap . td ;
55565560
5561+ // Support: IE <=9 only
5562+ if ( ! support . option ) {
5563+ wrapMap . optgroup = wrapMap . option = [ 1 , "<select multiple='multiple'>" , "</select>" ] ;
5564+ }
5565+
55575566// IE can't serialize <link> and <script> tags normally
55585567if ( ! jQuery . support . htmlSerialize ) {
55595568 wrapMap . _default = [ 1 , "div<div>" , "</div>" ] ;
0 commit comments