From 9ae6b1a019553e95a6205d5c42ff7fa25e7a482e Mon Sep 17 00:00:00 2001 From: Oleg Date: Tue, 27 Nov 2012 21:32:59 -0500 Subject: [PATCH] Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044. --- src/manipulation.js | 20 ++++++++++---------- test/unit/attributes.js | 7 ++----- test/unit/manipulation.js | 10 ++++++---- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/manipulation.js b/src/manipulation.js index 6521e885e..f215d5a8c 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -30,18 +30,18 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*\s*$/g, wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
", "
" ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
" ], - tr: [ 2, "", "
" ], - col: [ 2, "", "
" ], - td: [ 3, "", "
" ], + option: [ 1, "