- fixed <rdar://problem/
3977000> form data set posted for <input type="image" ...> omits name/value pair
* khtml/html/html_formimpl.cpp:
(DOM::HTMLInputElementImpl::appendFormData): Append a name/value pair for type IMAGE in addition to the X/Y
coordinates.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8479
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-30 Darin Adler <darin@apple.com>
+
+ Reviewed by John.
+
+ - fixed <rdar://problem/3977000> form data set posted for <input type="image" ...> omits name/value pair
+
+ * khtml/html/html_formimpl.cpp:
+ (DOM::HTMLInputElementImpl::appendFormData): Append a name/value pair for type IMAGE in addition to the X/Y
+ coordinates.
+
2005-01-30 Darin Adler <darin@apple.com>
Reviewed by John.
{
encoding.appendData(name().isEmpty() ? QString::fromLatin1("x") : (name().string() + ".x"), clickX());
encoding.appendData(name().isEmpty() ? QString::fromLatin1("y") : (name().string() + ".y"), clickY());
+ if (!name().isEmpty() && !value().isEmpty())
+ encoding.appendData(name(), value());
return true;
}
break;