File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 7
7
meter { width : 100% ; }
8
8
meter : after { content : '%' ; }
9
9
.fail { background : # c00 ; padding : 2px ; color : # fff ; }
10
- [ hidden ] { display : none !important ;}
10
+ . hidden { display : none !important ;}
11
11
</ style >
12
12
< article >
13
13
< div id ="holder ">
14
14
</ div >
15
- < p id ="upload " hidden > < label > Drag & drop not supported, but you can still upload via this input field:< br > < input type ="file "> </ label > </ p >
15
+ < p id ="upload " class =" hidden " > < label > Drag & drop not supported, but you can still upload via this input field:< br > < input type ="file "> </ label > </ p >
16
16
< p id ="filereader "> File API & FileReader API not supported</ p >
17
17
< p id ="formdata "> XHR2's FormData is not supported</ p >
18
18
< p id ="progress "> XHR2's upload progress isn't supported</ p >
44
44
if ( tests [ api ] === false ) {
45
45
support [ api ] . className = 'fail' ;
46
46
} else {
47
- support [ api ] . hidden = true ;
47
+ // FFS. I could have done el.hidden = true, but IE doesn't support
48
+ // hidden, so I tried to create a polyfill that would extend the
49
+ // Element.prototype, but then IE10 doesn't even give me access
50
+ // to the Element object. Brilliant.
51
+ support [ api ] . className = 'hidden' ;
48
52
}
49
53
} ) ;
50
54
103
107
readfiles ( e . dataTransfer . files ) ;
104
108
}
105
109
} else {
106
- fileupload . hidden = false ;
110
+ fileupload . className = 'hidden' ;
107
111
fileupload . querySelector ( 'input' ) . onchange = function ( ) {
108
112
readfiles ( this . files ) ;
109
113
} ;
You can’t perform that action at this time.
0 commit comments