Browser detection in default template
Posted: Wed Mar 27, 2013 3:00 pm
I am currently converting all the jquery scripts in the default template (v1.5.5.1) to be compatible with jquery 1.9 and need some guidance on the use of $.browser in the product template. The code is as follows:
It only sets this if the product has options.
Because I am converting the default theme to be based on the HTML5 Boilerplate, and it loads modernizr.js in the head, and all the other JS in the footer, I would rather test for the lack of a feature (using the html class="" that modernizr inserts) than use this removed jquery method of browser detection.
I think it is the only missing method left for me to remove before I go totally 1.9 compatible and remove the jquery-migrate.js shim that simulates these old functions.
So can anyone tell me what feature is missing in IE6 that causes us to need the .bgIframe() method?
I am guessing it might have something to do with the jquery-ui popup calendar type tool, but I have been at this theme conversion for a couple of days now and brain fade has set in <grin>.
Code: Select all
if ($.browser.msie && $.browser.version == 6) {
$('.date, .datetime, .time').bgIframe();
}
Because I am converting the default theme to be based on the HTML5 Boilerplate, and it loads modernizr.js in the head, and all the other JS in the footer, I would rather test for the lack of a feature (using the html class="" that modernizr inserts) than use this removed jquery method of browser detection.
I think it is the only missing method left for me to remove before I go totally 1.9 compatible and remove the jquery-migrate.js shim that simulates these old functions.
So can anyone tell me what feature is missing in IE6 that causes us to need the .bgIframe() method?
I am guessing it might have something to do with the jquery-ui popup calendar type tool, but I have been at this theme conversion for a couple of days now and brain fade has set in <grin>.