From e73541dfe9fc649d9a519ec18297ab2928740c26 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 22 Dec 2015 20:55:57 +0300 Subject: [PATCH] Revert "Manipulation: simplification of manipulation wrappers" This reverts commit 3e8712062d92feea8723e6185c47a2cc98e0e7af. --- src/manipulation/wrapMap.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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