Removing HTML whitespace

  • Thread starter Thread starter +Bob+
  • Start date Start date
B

+Bob+

I use the remove HTML leading / all whitespace option when I publish.

I have two included files. One contains a multi-line HTML comment then
some META tags. The other contains a multi-line HTML comment, they a
<script> section.

In the case of the first, it removes the white space in the comment
when publishing. In the case of the second, it leaves both the comment
and the <script> section untouched. The comments in the second file
are not in the script section, they stand separately in the body
section before the script starts.

Any insight into what is going on?

thanks,
 
In addition to Steve's comment removing all whitespace is not a good
idea if your users have older browsers, some of these will not render
the page at all if presented with a line of code over 4000 characters
long.

As for your problem, I would need to see the included files before
optimisation takes place.
 
As for your problem, I would need to see the included files before
optimisation takes place.

I will chop them down to small includes, do some more tests, and post
some samples. I was hoping someone would say "hey, that's because
of...".

You're forcing me to do my homework!

:-)
 
In addition to Steve's comment removing all whitespace is not a good
idea if your users have older browsers, some of these will not render
the page at all if presented with a line of code over 4000 characters
long.

Can you be more specific about which browsers? I test back into
Netscape 4.7. circa 2000. I use to test in old versions of MSIE but
MS made it less than easy a few years back to run old versions. I'm
interested if there are browsers with this issue.
 
Back
Top