#8627: Textarea misses first line if empty (in display)
---------------------------------+------------------------------------------
          Reporter:  bastih      |         Owner:  bastih        
            Status:  closed      |     Milestone:  1.0           
         Component:  Forms       |       Version:  SVN           
        Resolution:  wontfix     |      Keywords:  forms textarea
             Stage:  Unreviewed  |     Has_patch:  1             
        Needs_docs:  0           |   Needs_tests:  0             
Needs_better_patch:  0           |  
---------------------------------+------------------------------------------
Comment (by toke):

 Replying to [comment:2 mtredinnick]:
 > I'm not sure I like this. It changes the data without the user's
 consent. If you load a form, then save, then load again, then save again
 (e.g. whilst editing), blank lines keep getting added to your data.

 In the wild the opposite happens (At least in Safari, Firefox, IE7, Opera,
 lynx and others). If you rely on lets say one or two newlines in front of
 other data in a textarea the first newline will get eaten on every save. I
 have not found a current browser yet that handles this different. Opera
 has even changed this behavior to ignore the first line:
 http://my.opera.com/community/forums/topic.dml?id=94823

 Use for example FlatPage in admin enter some newlines in the textarea and
 then some other visible characters. Now hit "Save and continue editing"
 several times and watch the characters wandering upwards. In reverse
 entering something different to a newline will work fine. With that patch
 no additional newline is stored in the database.

 The Spec is not 100% clear here but all major Browsers implement it on the
 same way.
 http://www.w3.org/TR/html4/interact/forms.html#h-17.7

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8627#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to