(function (window, $) {
    $.fn.progressiveDatePicker = function (value, options) {
        return this.each(function () {
            var el = $(this);
            if (!Modernizr.touch || !Modernizr.inputtypes || !Modernizr.inputtypes.date) {
                el.attr('type', 'text');
                el.val(value);
                el.datepicker(options);
            }
        });
    };
})(window, jQuery);
@@ -258,32 +258,89 @@
     
-el.attr('type', 'text');
+try %7B%0A                    el.attr('type', 'text');%0A                %7D catch (e) %7B%7D
 %0A   
@@ -459,8 +459,9 @@
 jQuery);
+%0A

Fix IE8 complaining when trying to set type attribute