Skip to content

Conversation

areknoster
Copy link
Contributor

The issue I mentioned earlier. Apparently I was wrong - it's not specific to input or button type.
It's that the input of the form are not the issue on the browser stage, but all values are lost somewhere in between.

I've made this for the purpose of showcasing the issue, this should not be merged.

❯ go test -run TestSubmitForm
--- FAIL: TestSubmitForm (0.01s)
    submit_form_test.go:26: Invalid hidden value: 
    submit_form_test.go:37: Invalid name: 
    submit_form_test.go:26: Invalid hidden value: 
    submit_form_test.go:37: Invalid name: 
FAIL
exit status 1
FAIL    github.com/gost-dom/browser     0.685s

areknoster and others added 2 commits March 5, 2025 13:05
Adds a comprehensive test for form submission in the browser package, covering:
- Submitting forms via button and input submit elements
- Verifying hidden form values
- Checking form submission with different input types
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.

1 participant