Log Message:
-----------
Changed behaviour of HtmlImageInput submission to be consistent with
what the browsers do. If the input's name was foo we would previously
send the following values to the server: foo, foo.x and foo.y. The browsers
only send foo.x and foo.y.
Modified Files:
--------------
/cvsroot/htmlunit/htmlunit/src/xdocs:
changes.xml
/cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html:
HtmlInput.java
Revision Data
-------------
Index: changes.xml
===================================================================
RCS file: /cvsroot/htmlunit/htmlunit/src/xdocs/changes.xml,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- changes.xml 23 Jul 2003 17:07:55 -0000 1.118
+++ changes.xml 23 Jul 2003 17:26:52 -0000 1.119
@@ -149,6 +149,12 @@
Fixed bug where inputs would not submit properly if the type attribute
wasn't lowercase.
</action>
+ <action type="update" dev="mbowler" id="744381">
+ Changed behaviour of HtmlImageInput submission to be consistent with
+ what the browsers do. If the input's name was foo we would previously
+ send the following values to the server: foo, foo.x and foo.y. The browsers
+ only send foo.x and foo.y.
+ </action>
</release>
</body>
Index: HtmlInput.java
===================================================================
RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlInput.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- HtmlInput.java 23 Jul 2003 17:07:55 -0000 1.24
+++ HtmlInput.java 23 Jul 2003 17:26:52 -0000 1.25
@@ -102,7 +102,6 @@
final String name = getNameAttribute();
if( wasPositionSpecified_ == true ) {
return new KeyValuePair[]{
- new KeyValuePair( name, getValueAttribute() ),
new KeyValuePair( name+".x", String.valueOf(xPosition_) ),
new KeyValuePair( name+".y", String.valueOf(yPosition_) )
};
|