KJS: changing an input name
David Faure
faure at kde.org
Mon Feb 28 00:59:01 GMT 2005
On Monday 28 February 2005 01:01, Yan Morin wrote:
> Could someone confirm this bug ?
> http://yansanmo.no-ip.org:8080/test/kde/input_clone.htm
>
> I clone an input form.
> Change the name.
> Add it to the form.
> Try to access it with is new name, but it seems that Konqueror use the
> first name.
Confirmed... and fixed.
--- html/html_formimpl.cpp 20 Feb 2005 17:36:46 -0000 1.421
+++ html/html_formimpl.cpp 28 Feb 2005 00:57:05 -0000
@@ -868,6 +868,7 @@ void HTMLGenericFormElementImpl::setName
{
if (m_name) m_name->deref();
m_name = name.implementation();
+ setAttribute( ATTR_NAME, name );
if (m_name) m_name->ref();
}
Thanks for your testcases once again :)
(PS: I didn't have your email address to tell you, but I recently fixed the
onchange problems you told me about on IRC long ago)
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kfm-devel
mailing list