Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the name attribute of form elements to accept any string instead of an ID #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhorstmann
Copy link

According to the whatwg html spec the name attribute can be any string:

Other than isindex, any non-empty value for name is allowed

Fixes #40

…ad of an ID

According to the [whatwg html spec][1] the `name` attribute can be any string:

> Other than `isindex`, any non-empty value for `name` is allowed

 [1]: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
@jhorstmann
Copy link
Author

I went through the "Forms" section of the whatwg spec to verify the affected elements. One notable element is fieldset, the declare macro does not list any attributes at all. I could add the attributes in this PR if wanted.

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.

Input elements "name" attribute should allow arbitrary strings instead of only ID
1 participant