Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29 lines (21 sloc)
798 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( function() { | |
| "use strict"; | |
| // We have to close these tags to support XHTML (#13200) | |
| var wrapMap = { | |
| // Support: IE <=9 only | |
| option: [ 1, "<select multiple='multiple'>", "</select>" ], | |
| // 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, "", "" ] | |
| }; | |
| // Support: IE <=9 only | |
| wrapMap.optgroup = wrapMap.option; | |
| wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; | |
| wrapMap.th = wrapMap.td; | |
| return wrapMap; | |
| } ); |