Ticket #11217 (closed bug: fixed)
Append problem with webkit
| Reported by: | MrMamen | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7.2 |
| Component: | manipulation | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When appending a checked radio button made on the fly, it is not checked in webkit browsers. (Chrome & Safari) This works in jQuery prior to version 1.7.1, it also works in Opera, Firefox and even IE. Appending a checked checkbox works fine. http://jsfiddle.net/mrmamen/YZNhp/
Change History
comment:1 Changed 16 months ago by sindresorhus
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to manipulation
comment:3 Changed 15 months ago by Sindre Sorhus
- Status changed from open to closed
- Resolution set to fixed
Fix #11217. WebKit clone() loses check if name follows checked attribute.
Please folks, hold your questions. We don't explain em, we just fix em.
Changeset: 92cd9990971a097b6639607b0d1172e9fe6d0dca
comment:5 Changed 7 weeks ago by m_gol
Is this still needed? Chrome & Safari 6 work correctly in this test with jQuery 1.7.1. Unfortunately, I don't have access to Safari 5.1 & older iOS versions.
P.S. Is there any way to be able to test on Safari 5.1 while keeping 6.0 on OS X? With IE there are at least VMs available for testing.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Simplified jsfiddle
Really weird, it works if I change the order of the "name" and "checked" attributes.
Confirmed in Chrome 16 and Safari. Works in Firefox 9.