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

on forms, `attr` with no value creates wrong string if there are other attributes #842

edalzell opened this Issue Aug 7, 2016 · 1 comment


None yet
2 participants

edalzell commented Aug 7, 2016

Steps to reproduce

  1. Create a form with `{{ user:register_form redirect="/account" attr="data-admission-form|class:form" }}
  2. Look at the HTML produced

Expected behaviour

Form tag w/ data-admission-form class="form"

Actual behaviour

Form tag w/ data-admission-formclass="form"

Related to #782


This comment has been minimized.

edalzell commented Nov 29, 2016

For future reference (just happened to a customer of mine), the workaround is to switch the order of the text to attr="class:form|data-admission-form"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment