Where is jQuery.browser() in jQuery 1.9.0?

From jQuery.com Upgrade Guide:

The jQuery.browser() method has been deprecated since jQuery 1.3 and is removed in 1.9. If needed, it is available as part of the jQuery Migrate plugin. We recommend using feature detection with a library such as Modernizr.

Read more: http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed

Advertisements

Stylesheet Limits in Internet Explorer?

This is something I am not aware of, not even thought it makes any sense. Internet Explorer, version 6 to 9, does have some limitation to include CSS files. It only allows as much as 31 files to be included in a page.

Eric Law went to explain why this is the case. The limitation has to do with IE using 32bit integer to identify these stylesheets rules.

However, this is not an issue in IE 10.

innerText x textContent in Mozilla Firefox

Mozilla Firefox doesn’t support JavaScript’s innerText property. Instead, the similar property used by Firefox is textContent. textContent is W3C-compliant property.

Differences between innerText and textContent are:

  • innerText is MSHTML’s proprietary.
  • textContent includes <script> tag on return value.
  • In Opera browser, innerText is modified to behave just like textContent.
  • textContent is supported in Internet Explorer 8 and 9.

Reference: Stackoverflow