It's been a long time since I did any html, but I remember being able to use names such as foo[0].bar or foo[] as input field names, so that a web framework could reconstruct a nested structure from query/form parameters. It seems this is not currently supported, and the attribute is defined as being of type ID.
Using such a name leads to a runtime panic such as
ERROR: <input name="foobar[]"> failed to parse attribute value: ID can only contain alphanumerics, dash, dot and underscore
The whatwg html spec does not seem to restrict the contents of the name attribute:
Other than isindex, any non-empty value for name is allowed