From: Brad C. <bc...@bo...> - 2003-07-21 16:14:18
|
<html> <body> For some reason submits with the "type" in anything but lowercase fail to work. Here is a reference that marks the value as [CI] or case-insensitive:<br> <a href="http://www.w3.org/TR/html401/interact/forms.html#adef-type-INPUT" eudora="autourl">http://www.w3.org/TR/html401/interact/forms.html#adef-type-INPUT</a><br><br> A good example I found was this change to the existing test for submit input that makes it fail:<br><br> Index: HtmlSubmitInputTest.java<br> ===================================================================<br> RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSubmitInputTest.java,v<br> retrieving revision 1.5<br> diff -u -r1.5 HtmlSubmitInputTest.java<br> --- HtmlSubmitInputTest.java<x-tab> </x-tab>10 Jun 2003 11:57:01 -0000<x-tab> </x-tab>1.5<br> +++ HtmlSubmitInputTest.java<x-tab> </x-tab>21 Jul 2003 16:06:47 -0000<br> @@ -71,7 +71,7 @@<br> = "<html><head><title>foo</title></head><body>"<br> + "<form id='form1'>"<br> + "<input type='submit' name='aButton' value='foo'/>"<br> - + "<input type='submit' name='button' value='foo'/>"<br> + + "<input type='SuBmIt' name='button' value='foo'/>"<br> + "<input type='submit' name='anotherButton' value='foo'/>"<br> + "</form></body></html>";<br> final WebClient client = new WebClient();<br><br> <br><br> Any ideas before I go digging through the code?<br><br> Brad C</body> </html> |