From kde-commits Tue May 17 12:46:31 2011 From: Maks Orlovich Date: Tue, 17 May 2011 12:46:31 +0000 To: kde-commits Subject: =?utf-8?q?=5Bkdelibs=5D_khtml/html=3A_Fix_cloning_of_checkboxes?= Message-Id: <20110517124631.3C3D7A60AE () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130563643710551 Git commit d22393aecc062ef4ab8bc9692911a4ec828f7007 by Maks Orlovich. Committed on 02/04/2011 at 17:16. Pushed by orlovich into branch 'master'. Fix cloning of checkboxes. ... And with it element-cloning method in jQuery 1.5, which was making us hit IE-specific path due to the bug. Showed up in particular on Doodle wizard, and kde-look thumbs. CCBUG:269175 BUG:272208 M +3 -0 khtml/html/html_formimpl.cpp http://commits.kde.org/kdelibs/d22393aecc062ef4ab8bc9692911a4ec828f7007 diff --git a/khtml/html/html_formimpl.cpp b/khtml/html/html_formimpl.cpp index 2959286..07cd035 100644 --- a/khtml/html/html_formimpl.cpp +++ b/khtml/html/html_formimpl.cpp @@ -1544,6 +1544,9 @@ void HTMLInputElementImpl::copyNonAttributeProperties(const ElementImpl* source) m_value = e->m_value; m_checked = e->m_checked; + m_defaultChecked = e->m_checked; + m_useDefaultChecked = e->m_defaultChecked; + m_indeterminate = e->m_indeterminate; // ### copy more? HTMLGenericFormElementImpl::copyNonAttributeProperties(source);