8000 Add an additional submit technique before form.submit() · Issue #303 · kee-org/browser-addon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8000 /react-partial>
Add an additional submit technique before form.submit() #303
Open
@luckyrat

Description

@luckyrat

This might increase the success rate of form submissions by triggering the submit event on the webpage.

const button = document.createElement('input');
button.type = 'submit';
form.append(button);
button.click();
button.remove();

This was described as a workaround for the challenges that led to the recent introduction of form.requestSubmit() but in our case we already fake a user click on any button that we can correctly identify. When we can't find a button to click, this workaround might prove more reliable than the good old form.submit() fallback.

See: whatwg/html#4187

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0