From kde-commits Sun Feb 25 01:04:49 2007 From: Harri Porten Date: Sun, 25 Feb 2007 01:04:49 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/html Message-Id: <1172365489.676449.15545.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117236549901919 SVN commit 637013 by porten: value() for radio button and checkboxes works on the value attribute. setValue() should do so then. See WebCore patch 7814 (incomplete back then) for more info. Fixes bug #127533 and possibly others. M +4 -0 html_formimpl.cpp --- branches/KDE/3.5/kdelibs/khtml/html/html_formimpl.cpp #637012:637013 @@ -1738,6 +1738,10 @@ if (m_type == FILE) return; m_value = (val.isNull() ? DOMString("") : val); + // ### set attribute for other types, too. no need for m_value + // ### in those cases. + if (m_type == RADIO || m_type == CHECKBOX) + setAttribute(ATTR_VALUE, m_value); if (m_type == TEXT && m_render) m_render->updateFromElement(); setChanged();