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

form-nonce id with multiple forms. #115

Closed
davidbrooksio opened this issue Jan 4, 2017 · 1 comment
Closed

form-nonce id with multiple forms. #115

davidbrooksio opened this issue Jan 4, 2017 · 1 comment

Comments

@davidbrooksio
Copy link

Regarding forum post: https://getgrav.org/forum#!/plugin-development:form-nonce-on-multiple-form
The page does not pass html validation when more than one form is displayed on a page. This is because each form contains a hidden input of <input type="hidden" id="form-nonce" name="form-nonce" value="********" />.
ID's must be unique and therefore the id of form-nonce breaks validation as it appears more than once.

@rhukster
Copy link
Member

rhukster commented Mar 9, 2017

Yes, technically that's not valid according to HTML specs, however it does still work and doesn't effect functionality. We'll get this sorted soon.

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

No branches or pull requests

2 participants