Changes between Initial Version and Version 1 of Ticket #13385
- Timestamp:
- Apr 20, 2010, 7:59:24 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13385 – Description
initial v1 1 1 The Textarea widget is rendering textarea tag like this: 2 2 {{{ 3 3 return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs), 4 4 conditional_escape(force_unicode(value)))) 5 5 }}} 6 6 However this is not the expected behavior for textarea tag, as from W3C[1] this should be: 7 {{{ 7 8 <textarea> 8 9 first line 9 10 </textarea> 10 11 }}} 11 12 So the correct render should be: 13 {{{ 12 14 return mark_safe(u'<textarea%s>\n%s\n</textarea>' % (flatatt(final_attrs), 13 15 conditional_escape(force_unicode(value)))) 16 }}} 14 17 15 18 [1] http://www.w3.org/TR/html401/interact/forms.html#edef-TEXTAREA