DomCrawler\Form doesn't handle image inputs properly #10204
Labels
DomCrawler
Good first issue
Ideal for your first contribution! (some Symfony experience may be required)
When a
DomCrawler\Form
is initialized with an<input type="image" name="bar">
element, it will end up in$form->getValues()
as "bar", instead of "bar.x" and "bar.y". Because of this, there is no way to set the values for the x and y coordinates and it will incorrectly miss those variables in the GET/POST data, would the form be submitted.Ran into this issue while using fabpot/Goutte, where my submitted form did not get picked up properly by the receiving webserver, because the "imageinputname".x and "imageinputname".y were not present in the POST data.
The text was updated successfully, but these errors were encountered: