Specifying 'enctype' parameter in form template tag results in 'enctype' attribute being rendered twice

Bug #596903 reported by Jeremy Volkman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Fix Committed
Undecided
Erwan Loisant
1.1
Fix Committed
Undecided
Unassigned

Bug Description

When specifying the 'enctype' attribute on a form tag (e.g., for file uploading), the 'form' element is rendered with two 'enctype' attributes.

Template: #{form @Files.addFile() , id:"addFileForm" }
HTML: <form action="/files" method="POST" accept-charset="utf-8" enctype="application/x-www-form-urlencoded" id="addFileForm" >

Template: #{form @Files.addFile() , id:"addFileForm", enctype:"multipart/form-data" }
HTML: <form action="/files" method="POST" accept-charset="utf-8" enctype="application/x-www-form-urlencoded" id="addFileForm" enctype="multipart/form-data">

This doesn't appear to affect functionality, but it does fail w3c validation.

Erwan Loisant (eloisant)
Changed in play:
assignee: nobody → Erwan Loisant (eloisant)
Revision history for this message
Erwan Loisant (eloisant) wrote :

Fixed in 1.1, thanks for the report.

Erwan Loisant (eloisant)
Changed in play:
status: New → Won't Fix
status: Won't Fix → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.