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


JetBrains Announces TeamCity Pipelines
19/03/2024

JetBrains has released a public beta of TeamCity Pipelines, a cloud-based Continuous Integration/Continuous Deployment (CI/CD) service for small and medium-sized engineering teams.



WasmCon 2023 Sessions Now Online
01/03/2024

The recorded session of the premier conference for technical developers and users interested in exploring the potential of WebAssembly are now online.


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 )