Ticket #6133 (closed bug: fixed)
:checked fails on dynamically generated checkboxes in Opera 10
|Reported by:||yurgon||Owned by:|
In Opera 10.10, the :checked selector fails on checkboxes that are dynamically generated into the DOM by AJAX requests, document.write(), $.append() etc. The problem appears on checkboxes but not on radiobuttons. Other browsers work fine (tested in IE 6-8, Firefox 3.6, Chrome 4.0, Safari 4.0). Unfortunately, I don't have older versions of Opera available for testing. The same problem existed in jQuery 1.3.2.
The attached HTML file demonstrates the problem: the total number of :checked elements is counted. The link "Duplicate <div> with checkboxes and radiobuttons" clones the form and inserts the clone into the DOM. In Opera 10, the updated count of :checked elements is now wrong - the new checkboxes are ignored. Manually un- and then rechecking the checkboxes sets the count right.
The problem appears to be independent of the technique used to insert content into the DOM (I originally noticed it on content delivered by AJAX request).
- Priority set to undecided
- Status changed from new to open
- Milestone changed from 1.4.2 to 1.4.4
- Priority changed from undecided to low
- Milestone changed from 1.4.4 to 1.5