Re: PHP editor
| From: | Curt Zirzow | Date: | Thu, 15 Apr 2004 19:27:34 +0000 |
| Subject: | Re: PHP editor | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183555@lists.php.net to get a copy of this message | ||
* Thus wrote Greg Donald (destiney@destiney.com):
> On Thursday 15 April 2004 12:57 pm, Curt Zirzow wrote:
> > ok, then: s/[\r\n\t]//m;
> >
> > either way, you're blindly removing white space, which *does* matter
> > in certain cases.
>
> What case would that be? The function I posted is completely safe. I've been
> using it for a long time without any issues.
>
> View my efficient single line of html source code:
> http://destiney.com/.
actually, having *everything* on one line can make things
inefficient, depending on the browser implementation on reading
lines from the socket.
But my point is that there are cases where html is WS sensitive:
<pre>
WS sensitive
</pre>
or
<code style="white-space: pre;">
if ($ws ) {
indent;
}
</code>
btw, you have a javascript on your homepage:
message: Statement on line 1: Expression evaluated to null or
undefined and is not convertible to Object: window.external
Backtrace:
Line 1 of inline#1 script in http://destiney.com/
window.external.AddFavorite("http://destiney.com/",
document.title);
Curt
--
"I used to think I was indecisive, but now I'm not so sure."