Open LuisFGomez opened 5 years ago
<div class="panel-body">
<p>Would you like to perform this action?</p>
<form action="/some/url/" method="POST">
<input name="csrfmiddlewaretoken" type="hidden" value="fakecsrftokenvalue"/>
<input name="somekey" type="hidden" value="someval"/>
</div><!-- panel-body -->
panel-body
must either be closed before form
tag opened or after it is closed.
Otherwise it's undefined what's your html mean.
html parser can't nor shouldn't provide any guarantee for invalid html.
In my case, I have a form that's rendered inside a bootstrap 3 panel. Here's a simple example you can run through pyminify:
The output is
This places the closing
</form>
tag immediately after the second<input>
tag, which excludes the submit button from the form. This breaks the form entirely.