You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #53976 (which is basically the same for id attributes)
The checks being performed on the names of form fields are still following the HTML4 specs.
However, they changed in HTML5 - the only forbiddennames are now:
The name "-foo" contains illegal characters. Names should start with a letter, digit or underscore and only contain letters, digits, numbers, underscores ("_"), hyphens ("-") and colons (":").
Symfony version(s) affected
7.0.3
Description
Related to #53976 (which is basically the same for
id
attributes)The checks being performed on the
name
s of form fields are still following the HTML4 specs.However, they changed in HTML5 - the only forbidden
name
s are now:isindex
_charset_
(case-insensitive)Source: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
So I suggest to adjust the check.
How to reproduce
Setup a form with:
Resulting error:
Possible Solution
The check is happening in
FormConfigBuilder::isValidName()
Additional Context
No response
The text was updated successfully, but these errors were encountered: