diff --git a/src/core/platform/web/jquery/_jquery.js b/src/core/platform/web/jquery/_jquery.js index 590fda029..8b34748ae 100644 --- a/src/core/platform/web/jquery/_jquery.js +++ b/src/core/platform/web/jquery/_jquery.js @@ -4495,6 +4495,12 @@ div.innerHTML = ""; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + // Support: IE <=9 only + // IE <=9 replaces "; + support.option = !!div.lastChild; + // #11217 - WebKit loses check when the name is after the checked attribute fragment.appendChild( div ); @@ -4525,7 +4531,7 @@ // We have to close these tags to support XHTML (#13200) var wrapMap = { - option: [ 1, "" ], + // option: [ 1, "" ], legend: [ 1, "
", "
" ], area: [ 1, "", "" ], @@ -4541,12 +4547,16 @@ _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] }; -// Support: IE8-IE9 - wrapMap.optgroup = wrapMap.option; +// // Support: IE8-IE9 +// wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; + // Support: IE <=9 only + if ( !support.option ) { + wrapMap.optgroup = wrapMap.option = [ 1, "" ]; + } function getAll( context, tag ) { var elems, elem,