#5414 closed defect (worksforme)
dojo textarea widget does not preserve line feeds in IE6
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dijit - Form | Version: | 1.0 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description (last modified by )
Browser: IE6.0.2900 OS: Windows XP SP2
The textarea widget allows you to add new lines by hitting the Enter key. On submitting the form, these get Posted OK to the back-end. However, if you then re-render the textarea with a value containing new lines, IE6 does not preserve them.
ie if you have:
<div dojoType="dijit.form.Textarea" name="comments" style="width:300px"> Line 1 Line 2 Line 3 </div>
This is rendered properly with line feeds in Firefox and Safari, but IE6 will show:
Line 1 Line 2 Line 3
in the textarea box.
Change History (4)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Owner: | set to Douglas Hays |
comment:2 Changed 13 years ago by
<textarea> works a treat! Many thanks!
However the documentation says to use a <div> so you probably ought to change that. See:
comment:3 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Great. OK, I just updated the book w/this info.
comment:4 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
How about if you use a <textarea> node to instantiate it rather than a <div>? Like: