jQuery 1.6 released with better attributes
Written by Ian Elliot   
Wednesday, 04 May 2011
Version 1.6 of the jQuery JavaScript library has been released. It includes performance and cross browser compatability improvements and a major rewrite of the Attribute model.

The Attribute module improvements in the library have resulted in better performance of the attr() and val() methods and support for boolean attributes and hooks have been added to allow the two methods to be extended.

Performance has also been improved in event handling, which has in turn improved the performance of jQuery's data() which allows data to be attached to any DOM element. Other changes see the ":focus" selector working properly across all browsers, find(), closest() and is() methods now all take DOM elements or jQuery objects, relative CSS support ported from the animate() method and smoother, more synchronised animation.

Some of the innovations may require code changes: case mapping of data attributes now matches the HTML5 spec and, due to the new distinction between properties and attributes, the prop(), removeProp() and attr() methods behave differently. A summary of the changes is available in the release announcement and there is also a list of all API changes.  

Work is now starting on jQuery 1.7, which is planned to be released in August. 

 

Banner


Kotlin Multiplatform Drops Support For Fleet
13/02/2025

JetBrains has announced that it is abandoning its plan to create a standalone Kotlin Multiplatform IDE and is planning to deprecate support for KMP on its lightweight Fleet IDE in order to focus its e [ ... ]



VSCode 1.97 Adds Copilot And Python Debugging
13/02/2025

The latest update of Visual Studio Code is now available with free use of GitHub Copilot and the ability to debug Python directly from the terminal.


More News

The jQuery developers have announced the release of version 1.6 of the widely used JavaScript library. The highlights include performance improvements and a major rewrite of the Attribute model. The update also includes numerous bug fixes and cross browser compatibility improvements.

The Attribute module improvements in the library see much better performance of the attr() and val() methods, support for boolean attributes and hooks have been added to allow the two methods to be extended. Performance has also been improved in event handling which has in turn improved the performance of jQuery's data() which allows data to be attached to any DOM element. Other changes see the ":focus" selector working properly across all browsers, find(), closest() and is() methods now all take DOM elements or jQuery objects, relative CSS support ported from the animate() method and smoother, more synchronised animation.

There are a number of breaking changes which may require code changes: case mapping of data attributes now matches the HTML5 spec and, because a clear line has been drawn between properties and attributes, the prop(), removeProp() and attr() methods behave differently. A summary of the changes is available in the announcement and a "by changed API method" list is available. The developers are now moving onto jQuery 1.7 and are accepting proposals for new features and changes with an eye to an August release. Among the latest adopters of jQuery is Ruby on Rails: from version 3.1, jQuery will be the default JavaScript library in the opinionated web framework.The jQuery developers have announced the release of version 1.6 of the widely used JavaScript library. The highlights include performance improvements and a major rewrite of the Attribute model. The update also includes numerous bug fixes and cross browser compatibility improvements.

The Attribute module improvements in the library see much better performance of the attr() and val() methods, support for boolean attributes and hooks have been added to allow the two methods to be extended. Performance has also been improved in event handling which has in turn improved the performance of jQuery's data() which allows data to be attached to any DOM element. Other changes see the ":focus" selector working properly across all browsers, find(), closest() and is() methods now all take DOM elements or jQuery objects, relative CSS support ported from the animate() method and smoother, more synchronised animation.

There are a number of breaking changes which may require code changes: case mapping of data attributes now matches the HTML5 spec and, because a clear line has been drawn between properties and attributes, the prop(), removeProp() and attr() methods behave differently. A summary of the changes is available in the announcement and a "by changed API method" list is available. The developers are now moving onto jQuery 1.7 and are accepting proposals for new features and changes with an eye to an August release. Among the latest adopters of jQuery is Ruby on Rails: from version 3.1, jQuery will be the default JavaScript library in the opinionated web framework.

Last Updated ( Wednesday, 04 May 2011 )