I'm making a form in HTML that has a name field that I'd like to validate with the HTML pattern
attribute.
I would like to allow any letters (including with accents) as well as - . , ' and space. (added in edit to clarify)
Here was my attempt:
Nome e Cognome: <input type="text" name="nome" required pattern="^[\p{L}\p{M} \-\.',]*$" placeholder="Mario Rossi">
However, when I input invalid data like John" Doe?
the form doesn't throw an error. Why?