httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: [PATCH] to enhance bugdb.cgi
Date Thu, 24 Apr 1997 23:46:27 GMT
On Thu, 24 Apr 1997, Paul Sutton wrote:

> On Thu, 24 Apr 1997, Rodent of Unusual Size wrote:
> >     Okey, here's a patch to enhance the bugdb.cgi script.  It
> >      o Translates CRs into newlines (tr/\r/\n/)
> 
> Out of interest, I've tried various browsers on windows to see what they
> generate for newlines in TEXTAREAs. The results are: 
> 
>    Netscape (1 and 4PR): \r\n
>    MSIE 3:               \r\n
>    MSIE 4:               \r
> 
> They have effectively changed the define newline in TEXTAREAs from \r\n to
> \r (you can get MSIE 4 to send a \r\n return by using CONTROL-RETURN - all
> other browsers generate the same newlines for RETURN and CTRL-RETURN). I'd
> love to consider this a bug and report it, but I've never read anything
> that defines the line-endings in a TEXTAREA. If you know that it is
> officially defined somewhere, please let me know. This seems like a really
> pointless change.

You can't really officially mandate this, because if you say newlines have
to be \r\n, then something that only sends \r simply isn't sending a
newline, nothing broken.  I think the strongest support you will find that
the HTTP spec says newlines are \r\n, so that is a good convention.  But
aside from convention...


Mime
View raw message