D
Daniel Bleisteiner
Hi everybody.
It's for quite some time now that I'm aware of a problem with linefeeds at
the beginning of a textarea. But I could never find a solution for that.
Maybe you can help me at last.
Whenever I have a <textarea></textarea> in any form with some text which
starts with several linefeeds the first of those linefeeds is not shown in
the textarea in the browser. I know that this comes from the definition as
a whitespace in html. The problem is most anyoing in dynamic
webapplications where the same text is submitted over an over again and
with every submit one linefeed gets deleted.
You can test this yourself (to be sure what I mean) by translating a text
with some linefeeds at the beginning at
http://babelfish.altavista.com/babelfish/tr - just retranslate the text
several times on the following response page. You will see what I mean.
Is there any flag for the <textarea> or any other workaround which solves
this problem?
It's for quite some time now that I'm aware of a problem with linefeeds at
the beginning of a textarea. But I could never find a solution for that.
Maybe you can help me at last.
Whenever I have a <textarea></textarea> in any form with some text which
starts with several linefeeds the first of those linefeeds is not shown in
the textarea in the browser. I know that this comes from the definition as
a whitespace in html. The problem is most anyoing in dynamic
webapplications where the same text is submitted over an over again and
with every submit one linefeed gets deleted.
You can test this yourself (to be sure what I mean) by translating a text
with some linefeeds at the beginning at
http://babelfish.altavista.com/babelfish/tr - just retranslate the text
several times on the following response page. You will see what I mean.
Is there any flag for the <textarea> or any other workaround which solves
this problem?