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

including a form creates duplicate CSS-IDs #956

Closed
fritzmg opened this issue Jul 12, 2017 · 2 comments
Closed

including a form creates duplicate CSS-IDs #956

fritzmg opened this issue Jul 12, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@fritzmg
Copy link
Contributor

fritzmg commented Jul 12, 2017

If you give a form a CSS-ID and include the form in the front end, the CSS-ID will be used for both the container element and the form itself.

Reproduction

  1. Create a new form in the form generator and give it a CSS-ID, e.g. foo.
  2. Include the form in any way in the front end:
    • Via an include content element.
    • Via <?= \Controller::getForm(…) ?>
    • Via {{insert_form::*}}.
  3. Analyze the HTML output. It will be the following in all cases (either with ce_form or mod_form):
<div class="ce_form block" id="foo">
  <form action="foo.html" id="foo" method="post" enctype="application/x-www-form-urlencoded"></form>
</div>
@leofeyer leofeyer added this to the 4.4.2 milestone Jul 12, 2017
@fenepedia
Copy link

Kann den Fehler bestätigen und reproduzieren.

@leofeyer leofeyer modified the milestones: 4.4.2, 4.4.3 Jul 27, 2017
@leofeyer leofeyer self-assigned this Aug 15, 2017
@leofeyer
Copy link
Member

Fixed in ee9ba7f.

@leofeyer leofeyer modified the milestones: 4.4.3, 4.4 May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants