jquery-hashchange icon indicating copy to clipboard operation
jquery-hashchange copied to clipboard

Replaced $.browser as deprecated in jQuery 1.9

Open KeithHenry opened this issue 12 years ago • 3 comments

I need to use this with jQuery 1.10, and $.browser was deprecated in jQuery 1.9.

Replaced $.browser.msie with /MSIE/.test(navigator.userAgent)

KeithHenry avatar Aug 23 '13 11:08 KeithHenry

I think #30 is a better solution.

konsumer avatar Sep 03 '13 04:09 konsumer

Ok, browser detection is bad, really you should detect features instead. The reason why is that old browsers may be patched and browsers you've never seen before may have the same issue.

Unfortunately here we're patching for specific buggy behaviour in IE6 & 7 where they can use an iframe to shim history handling - I've no idea how to test for that.

#30 is a terrible solution - it replaces $.browser.msie with !$.support.boxModel, which works because the same versions of IE (6 & 7) fail to support display: inline-block - but that's just coincidence. There's no actual relationship between $.support.boxModel and the iframe history hack working.

KeithHenry avatar Sep 03 '13 08:09 KeithHenry

Part of https://www.npmjs.com/package/jquery-hashchange/v/1.4.0

williamdes avatar Apr 18 '20 16:04 williamdes