JQuery 1.6.4 RC1 released
The official blog of jQuery writes that jQuery 1.6.4 will be released soon. You need help to find out the existing bugs. It is important to fix these bugs before the release of the .7 version on January 1, 1st day of next month. If you have time, you can test jQuery 1.6.4 RC1.
Bugs fixed in jQuery 1.6.4 RC1 include:
1. Data attributes
Share the best UI front-end framework!
Before jQuery 1.6.4, an error occurred while obtaining the data attribute "data-image-x-offset" through ". data ('imagexoffset ')". For example, the following HTML is displayed on the page:. Code
- The following jQuery code illustrates the problems in jQuery 1.6.3:. Code
- <Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js" type = "text/javascript"> </script>
- <Script type = "text/javascript">
- $ (Document). ready (function (){
- Alert (
- // ImageXOffset
- $. CamelCase ('image-x-offset ') + "\ n" +
- // Undefined
- $ ('# Id'). data ($. camelCase ('image-x-offset') + "\ n" +
- // 100
- $ ('# Id'). data ('image-x-offset') + "\ n" +
- // 100
- $ ('# Id'). data ($. camelCase ('image-x-offset '))
- );
- });
- </Script>
In jQuery 1.6.4, "100" is output, and this bug is fixed.
2. Event
In IE8, $ ("form"). live ("submit", fn) events are not triggered. The following HTML is available:
. Code
-
$ (Document). ready (function (){
. Code
- $ ('Form'). live ("submit", function (){
- // The latter will not be executed in jquery1.6.3
- Alert ("before submit ");
- });
- });
Finally, there is a bug in jQuery 1.6.3 mime type application/xhtml + xml. Share the best UI front-end framework!
Of course, our common web developers do not need to follow up so quickly. After all, it is difficult to ensure the latest jQuery 1.6.4 version is compatible with previous jQuery plug-ins. For example, jQuery learning is still using jQuery 1.6.2. However, understanding the modified content and changes in the new jQuery version will be of great help to the jQuery code we have written. I hope you will pay attention to it.