Skip to content

radio button's use of document.getElementbyName results in false positives #10

@awirick

Description

@awirick

If you have more than 1 form on a page, it is possible to collide with another form that uses the same names for inputs. e.g.

<form>
<input type="text" name="input1" required>
</form>

<form>
<input type="radio" name="input1" value="single">
<input type="radio" name="input1" value="double">
</form>

The following would result in a non submitted second form on submit, due to the first form's input's required attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions