Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#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:
Blocked by: Blocking:


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 (6)

comment:1 Changed 5 years ago by sindresorhus

  • Component changed from unfiled to manipulation
  • Priority changed from undecided to low
  • Status changed from new to open

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.

comment:2 Changed 5 years ago by rwaldron

  • Milestone changed from None to 1.next

comment:3 Changed 5 years ago by Sindre Sorhus

  • Resolution set to fixed
  • Status changed from open to closed

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:4 Changed 5 years ago by dmethvin

  • Milestone changed from 1.next to 1.7.2

comment:5 Changed 4 years 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.

Last edited 4 years ago by m_gol (previous) (diff)

comment:6 Changed 4 years ago by dmethvin

It's closed?

You can use Browserstack for testing, drop by #jquery-dev on IRC and we can get you set up.

Note: See TracTickets for help on using tickets.