diff options
Diffstat (limited to 'src/manipulation/wrapMap.js')
-rw-r--r-- | src/manipulation/wrapMap.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/manipulation/wrapMap.js b/src/manipulation/wrapMap.js index 01937ecc3..457902595 100644 --- a/src/manipulation/wrapMap.js +++ b/src/manipulation/wrapMap.js @@ -1,4 +1,3 @@ -// We have to close these tags to support XHTML (#13200) var wrapMap = { // Table parts need to be wrapped with `<table>` or they're @@ -6,12 +5,10 @@ var wrapMap = { // XHTML parsers do not magically insert elements in the // same way that tag soup parsers do, so we cannot shorten // this by omitting <tbody> or other required elements. - thead: [ 1, "<table>", "</table>" ], - col: [ 2, "<table><colgroup>", "</colgroup></table>" ], - tr: [ 2, "<table><tbody>", "</tbody></table>" ], - td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], - - _default: [ 0, "", "" ] + thead: [ "table" ], + col: [ "colgroup", "table" ], + tr: [ "tbody", "table" ], + td: [ "tr", "tbody", "table" ] }; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; |