Skip to content

Fix submit buttons without a value attribute - #16

Open
exeayush18 wants to merge 1 commit into
scrapy:mainfrom
exeayush18:codex/include-empty-submit-values
Open

exeayush18 wants to merge 1 commit into
scrapy:mainfrom
exeayush18:codex/include-empty-submit-values

Conversation

@exeayush18

Copy link
Copy Markdown

Fixes #12.

A selected submit button with a name but no value attribute now contributes an empty value, matching browser form submission behavior.

Tests:

  • python -m pytest -q
  • ruff check form2request tests
  • python -m mypy form2request tests
  • pre-commit run --all-files --show-diff-on-failure

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: form2request ignores submit buttons without attribute

1 participant