jQuery.browser or jQuery.support?
Here's the problem. IE doesn't render a scrollable tbody in a table element right as far as I've tested (definitely not in IE8). Firefox does, and I've heard of most others. So I found a jquery plugin to make it scrollable.
So I figured, hey if IE is the only one that's not doing it, why not just call the jquery plugin only o开发者_JS百科n IE. So a little googling (I'm new to jquery) and I see you can call
$.browser.msie
tells me if it's IE
but on the jquery website it says to try and use jquery.support object.
Well what feature is this called?
And is it better to use jquery.support or $.browser ?
Ideally, you should extend jquery.support to have something like scrollableTbody. This way, your code shows clearly what you are testing and you can later adapt the code at the right place when new/other browsers show different behavior.
精彩评论