- // Our form input *should* be type="hidden". But if we're infusing from
- // PHP, it's not.
- if ( this.$input.attr( 'type' ) !== 'hidden' ) {
- try {
- this.$input.attr( 'type', 'hidden' );
- } catch ( e ) {
- }
- // IE <= 8, and IE 9 in quirks mode, doesn't allow changing the
- // type, so just hide the field with CSS. IE 9 in quirks mode
- // doesn't even throw an error, so do that unconditionally. Sigh.
- this.$input.css( 'display', 'none' );
- }
-