diff --git a/src/core/platform/web/jquery/_jquery.js b/src/core/platform/web/jquery/_jquery.js index 590fda029..578ce4eb7 100644 --- a/src/core/platform/web/jquery/_jquery.js +++ b/src/core/platform/web/jquery/_jquery.js @@ -4520,12 +4520,18 @@ // cleanData must set properties to undefined rather than use removeAttribute div[ jQuery.expando ] = 1; support.attributes = !div.getAttribute( jQuery.expando ); + + // Support: IE <=9 only + // IE <=9 replaces "; + support.option = !!div.lastChild; } )(); // 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,