// Make sure textarea (and checkbox) defaultValue is properly cloned
div.innerHTML = "<textarea>x</textarea>";
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
+
+ // Support: IE <=9 only
+ // IE <=9 replaces <option> tags with their contents when inserted outside of
+ // the select element.
+ div.innerHTML = "<option></option>";
+ support.option = !!div.lastChild;
} )();
return support;
-define( function() {
+define( [
+ "./support"
+], function( support ) {
"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.
_default: [ 0, "", "" ]
};
-// Support: IE <=9 only
-wrapMap.optgroup = wrapMap.option;
-
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
+// Support: IE <=9 only
+if ( !support.option ) {
+ wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
+}
+
return wrapMap;
} );
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": true,
"noCloneChecked": false,
+ "option": true,
"optSelected": false,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": true,
"noCloneChecked": false,
+ "option": false,
"optSelected": false,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": false,
"pixelPosition": false,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": true,
"pixelPosition": true,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": false,
"pixelPosition": false,
"createHTMLDocument": false,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": false,
"pixelPosition": false,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": false,
"pixelPosition": false,
"createHTMLDocument": true,
"focusin": false,
"noCloneChecked": true,
+ "option": true,
"optSelected": true,
"pixelBoxStyles": false,
"pixelPosition": false,