Changes between Initial Version and Version 1 of Ticket #13385


Ignore:
Timestamp:
Apr 20, 2010, 7:59:24 AM (14 years ago)
Author:
Ramiro Morales
Comment:

(reformatted description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13385 – Description

    initial v1  
    11The Textarea widget is rendering textarea tag like this:
    2 
     2{{{
    33return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs),
    44                conditional_escape(force_unicode(value))))
    5 
     5}}}
    66However this is not the expected behavior for textarea tag, as from W3C[1] this should be:
     7{{{
    78<textarea>
    89first line
    910</textarea>
    10 
     11}}}
    1112So the correct render should be:
     13{{{
    1214return mark_safe(u'<textarea%s>\n%s\n</textarea>' % (flatatt(final_attrs),
    1315                conditional_escape(force_unicode(value))))
     16}}}
    1417
    1518[1] http://www.w3.org/TR/html401/interact/forms.html#edef-TEXTAREA
Back to Top