textarea <textarea>%TEXT%</textarea>Look at this table. If the png and rendered rows differ on your browser, please inform us here!
| no newline | 1 newline | 2 newlines | |
|---|---|---|---|
| text in topic | "fred©" |
"\nfred©" |
"\n\nfred©" |
| text in html document |
<textarea>fred©</textarea> |
<textarea> fred©</textarea> |
<textarea> fred©</textarea> |
| png | |||
| rendered |
|
||
| passed as | "fred©" |
"fred©" |
"\nfred©" |
| total loss | none | first leading \n |
first leading \n |
In general, a control's "initial value" may be specified with the control element's value attribute. However, the initial value of a TEXTAREA element is given by its contents, 17.7 theNone of the wiki engines reviewed solves the problem of the single leadingTEXTAREAelement<!ELEMENT TEXTAREA - - (#PCDATA) -- multi-line text field -->
\n lost each time you put text in a textarea element (with all tested browsers).
<textarea> %TEXT%</textarea>implemented by CrawfordCurrie in r3827.
| So, as I understand it, the fix to this is as simple as putting a newline into the template before %TEXT%. Yes? -- CrawfordCurrie - 18 Mar 2005 Well, it works for me (Firefox and Konqueror). Let's hope that's correct, because I just checked it in. r3827 Can someone please test on IE? -- CrawfordCurrie - 18 Mar 2005 |
| ChangeProposalForm | |
|---|---|
| TopicClassification | BugReport |
| TopicSummary | Some browsers lose initial \n in textarea |
| CurrentState | ReadyForMerge |
| OutstandingIssues | |
| RelatedTopics | |
| InterestedParties | |
| ProposedFor | DakarRelease |
| TWikiContributors | ThomasWeigert, MarioFrasca, CrawfordCurrie |