Ticket #11014 (closed bug: worksforme)
.Clone Behaviour Changes in IE7 After Installing KB2497640
|Reported by:||dsmith@…||Owned by:|
Using IE7 on Window XP SP3 after installing the KB2497640 (MS11-018) security update, cloning of items with jQuery 1.5 appears to work incorrectly. Downgrading to jQuery to 1.4 or removing KB2497640, appears to resolve the problem. The issue is not reproducible on other browsers. Upgrading to 1.6+ is not an option due to #9777 which actually makes the problem worse in some situations.
Our application uses clone() for a large amount of templating, so this bug and #9777 make the application unusable in IE7 with any jQuery version after 1.4. Suggesting to our clients that they must uninstall critical security updates is also not a viable option.
Steps to Reproduce
A stripped down example can be found at: http://jsfiddle.net/dennismsmith/LuBqs/
- The page should initially load with just an Apply Template button visible
- Clicking the button should cause any existing items in the (initially empty) list to be removed and a number of new items will be inserted based on a template LI node.
- In any browser but IE7 + KB2497640, you can click the button as many times as you like and it continues to display the list items.
- With IE7 + KB2497640, after two or three clicks of the button (the number of clicks isn't always consistent), list items will no longer be added, leaving you with an empty list.
From my investigation, it appears as though the selectors are no longer able to find the template nodes by ID. If I modify the selectors to find them using classes or element types, I can still find the elements, so they do still exist in the DOM.
|jQuery 1.4||jQuery 1.5|
|IE7 + KB2497640||OK||Fail|
Note that while this sample not not exhibit the problems from #9777 when using jQuery 1.6+, the actual production application does.
This problem only occurs in IE7 with KB2497640 installed when using jQuery 1.5. The exact same site without that security update behaves as expected. I have only tried this on Windows XP SP3 as I do not have a Vista installation to test with.
The details of the security update can be found at: http://technet.microsoft.com/en-us/security/bulletin/ms11-018