bug or feature?

Colin Allen colin at snaefell.tamu.edu
Mon Oct 5 21:56:32 PDT 1998


In doing some perl/cgi work I have discovered a place where OmniWeb's
behavior (in 3.0b8 and 2.7b3) is not the same as Netscape's or MSIE.

The issue concerns multiline strings as values of hidden form inputs.
NN and MSIE both preserve the embedded \n characters so that if the
element is later displayed in a <pre> or <textarea> context, the
line breaks are preserved.  OmniWeb drops all newlines so that the
string is handled as a single line.

I have set up a simple test page at http://www.poweroflogic.com/foo.html
This runs a very simple script that takes the hidden variable in foo.html
and displays it in a text area.  If you check it with OmniWeb you will see
a single line.  If you use those other browsers you will see multiple lines.

So, who is correct?  And regardless of who is correct by html standards
(if they even define what should happen here), should OmniWeb do what
the others are doing to avoid appearing to have a bug?

In the mean time, if you are doing cgi programming, beware of this
behavior.

--
Colin Allen
http://snaefell.tamu.edu/~colin/



More information about the OmniWeb-l mailing list