Skip to content

[Form] Label should not render field attributes #2294

Closed
@stealth35

Description

@stealth35

Label should not render field attributes

->add('test', 'email', array('attr' => array('novalidate' => 'novalidate')))

Render :

<label novalidate="novalidate" for="form_test" class=" required">Test</label>
<input type="email" id="form_test" name="form[test]" required="required"    novalidate="novalidate" value="" />

Expect :

<label for="form_test" class=" required">Test</label>
<input type="email" id="form_test" name="form[test]" required="required"    novalidate="novalidate" value="" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions