spaces in image names

J

Jeff Thies

I have some html that looks like this:

<img src="some_image
..jpg" alt="">

with a line feed in the image path.

IE6 and Opera7 both render the image. That surprises me as I expected a
broken image.

Is html supposed to ignore the white space in the path?

I'm trying to decide whether to reload the data and fix that...

Jeff
 
B

brucie

In alt.html Jeff Thies said:
I have some html that looks like this:

<img src="some_image
.jpg" alt="">

with a line feed in the image path.

IE6 and Opera7 both render the image. That surprises me as I expected a
broken image.

RFC2396 Uniform Resource Identifiers (URI): Generic Syntax

<quote>
E. Recommendations for Delimiting URI in Context
[...]
In some cases, extra whitespace (spaces, linebreaks, tabs, etc.) may
need to be added to break long URI across lines. The whitespace should
be ignored when extracting the URI.
I'm trying to decide whether to reload the data and fix that...

fix it. break it somewhere else. e.g:

<img src="some_image.jpg"
alt="">
 
R

rf

Jeff said:
I have some html that looks like this:

<img src="some_image
.jpg" alt="">

with a line feed in the image path.

IE6 and Opera7 both render the image. That surprises me as I expected a
broken image.

Is html supposed to ignore the white space in the path?

Browser error correction. You have been lucky.
I'm trying to decide whether to reload the data and fix that...

I would think so. What does the validator say?
 
N

Neredbojias

Without quill or qualm, Jeff Thies quothed:
I have some html that looks like this:

<img src="some_image
.jpg" alt="">

with a line feed in the image path.

IE6 and Opera7 both render the image. That surprises me as I expected a
broken image.

Is html supposed to ignore the white space in the path?

I'm trying to decide whether to reload the data and fix that...

style the whitespace "color:#000000;" and maybe it'll cancel it out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,010
Latest member
MerrillEic

Latest Threads

Top