diff --git a/src/manipulation/wrapMap.js b/src/manipulation/wrapMap.js index e5e5acdab..ae9615eff 100644 --- a/src/manipulation/wrapMap.js +++ b/src/manipulation/wrapMap.js @@ -3,23 +3,19 @@ define( [ ], function( support ) { // We have to close these tags to support XHTML (#13200) -var wrapMap = { +var wrapMap = wrapMap = { option: [ 1, "" ], - - // Support: IE8 + legend: [ 1, "
", "
" ], + area: [ 1, "", "" ], param: [ 1, "", "" ], - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. thead: [ 1, "", "
" ], - col: [ 2, "", "
" ], tr: [ 2, "", "
" ], + col: [ 2, "", "
" ], td: [ 3, "", "
" ], // IE8 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
", "
" ] + _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] }; // Support: IE8-IE9