Skip to content

form.hidden_tag() generates unnecessary div #217

@txtsd

Description

@txtsd

If the input types are already hidden, what is the purpose of the div?

<input id="csrf_token" name="csrf_token" type="hidden" value="1452782070##2b535ebc0d609f21b85bb776d59247560414b7ff">
<input id="next" name="next" type="hidden" value="">

is a cleaner output than

<div style="display:none;"><input id="csrf_token" name="csrf_token" type="hidden" value="1452782070##2b535ebc0d609f21b85bb776d59247560414b7ff"><input id="next" name="next" type="hidden" value=""></div>

and avoids inlined css.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions