Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DomCrawler\Form doesn't handle image inputs properly #10204

Closed
@robbertkl

Description

@robbertkl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DomCrawlerGood first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions