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


Azure AI And Pgvector Run Generative AI Directly On Postgres
26/03/2024

It's a match made in heaven. The Azure AI extension enables the database to call into various Azure AI services like Azure OpenAI. Combined with pgvector you can go far beyond full text search. Let's  [ ... ]



Microsoft Introduces .NET Smart Components
01/04/2024

Microsoft has provided a set of .NET Smart Components, described as a set of genuinely useful AI-powered UI components that you can quickly and easily add to .NET apps. The components are prebuilt end [ ... ]


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 )