From kde-commits Tue May 17 12:35:40 2011 From: Maks Orlovich Date: Tue, 17 May 2011 12:35:40 +0000 To: kde-commits Subject: =?utf-8?q?=5Bkdelibs/KDE/4=2E6=5D_khtml/html=3A_Fix_cloning_of_c?= Message-Id: <20110517123540.4F88EA60AE () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130563577709670 Git commit 6f6a4933975e85ebbee2c3354096c1c3a4889a3f by Maks Orlovich. Committed on 17/05/2011 at 14:34. Pushed by orlovich into branch 'KDE/4.6'. 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/6f6a4933975e85ebbee2c3354096c1c3a4889a3f diff --git a/khtml/html/html_formimpl.cpp b/khtml/html/html_formimpl.cpp index 734ac4e..d885d7d 100644 --- a/khtml/html/html_formimpl.cpp +++ b/khtml/html/html_formimpl.cpp @@ -1541,6 +1541,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);