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


Windows 11 Adoption Takes A Downturn
11/12/2024

With Windows 10 End of Life only ten months away, Microsoft is stepping up its campaign to get Windows users to upgrade to Windows 11. But while Windows 11 had been gaining users at a steady rate at t [ ... ]



Knuth's Xmas Lecture 2024 - Strong And Weak
22/12/2024

Could  the festive season be complete without Donald Kunth putting on his flamboyant xmas top and talking to us about something that most of us know nothing about? Of course not.


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 )