Bug Tracker

Ticket #11217 (closed bug: fixed)

Opened 3 years ago

Last modified 21 months ago

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 3 years ago by sindresorhus

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

 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 3 years ago by rwaldron

  • Milestone changed from None to 1.next

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

  • Milestone changed from 1.next to 1.7.2

comment:5 Changed 21 months 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 21 months ago by m_gol (previous) (diff)

comment:6 Changed 21 months 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.