| 1 | define( [
|
| 2 | "../var/document",
|
| 3 | "../var/support"
|
| 4 | ], function( document, support ) {
|
| 5 |
|
| 6 | "use strict";
|
| 7 |
|
| 8 | ( function() {
|
| 9 | var input = document.createElement( "input" ),
|
| 10 | select = document.createElement( "select" ),
|
| 11 | opt = select.appendChild( document.createElement( "option" ) );
|
| 12 |
|
| 13 | input.type = "checkbox";
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 | support.checkOn = input.value !== "";
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 | support.optSelected = opt.selected;
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 | input = document.createElement( "input" );
|
| 26 | input.value = "t";
|
| 27 | input.type = "radio";
|
| 28 | support.radioValue = input.value === "t";
|
| 29 | } )();
|
| 30 |
|
| 31 | return support;
|
| 32 |
|
| 33 | } );
|