BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

JQuery 1.7 Brings HTML5 To IE6-8, Gets Deprecation Policy

| by Roopesh Shenoy on Nov 14, 2011. Estimated reading time: 1 minute |

JQuery 1.7 has recently been released, with improvements such as new Event APIs, Better performance of Delegated Events, HTML5 support for IE6-8, support for AMD spec and more. The team has also started deprecating certain features in an effort to keep JQuery slim.

Following are some of the new and interesting features in JQuery 1.7 -

  • New Unified Event APIs – .on() and .off() replace .bind(), .delegate(), .live() and .unbind(), .undelegate(), .die() respectively
  • Improved Performance on Delegated Events for most common cases
  • Better support for HTML5 tags in IE6-8 such as <section> with methods like .html(). Older IE versions still require html5shiv or Modernizer
  • Toggling animations such as .slideToggle() or .fadeToggle() work more intuitively – stacked animations get reset properly when previous animation is terminated prematurely
  • Support for AMD Specification – JQuery now co-operates with AMD-compliant script loaders such as RequireJS or curl.js

The JQuery team has also announced that they will start deprecating out-dated features to help make the code base leaner and also improve performance. Some APIs like .live() and .end() have been deprecated in JQuery 1.7 – they will continue to work, but their use is not recommended for compatibility with future versions.

Some non-standard features have been completely removed in 1.7 -

  • event.layerX or event.layerY
  • jQuery.isNaN() (undocumented utility function)
  • jQuery.event.proxy() (undocumented method)

You can read more about the new deprecation guidelines and all the features being deprecated in this blog post.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT