Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   spaces in image names (http://www.velocityreviews.com/forums/t159909-spaces-in-image-names.html)

Jeff Thies 11-09-2004 10:27 AM

spaces in image names
 
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


brucie 11-09-2004 10:40 AM

Re: spaces in image names
 
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.
</quote> http://www.ietf.org/rfc/rfc2396.txt

> 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="">


--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.

rf 11-09-2004 10:41 AM

Re: spaces in image names
 
Jeff Thies wrote:

> 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?

--
Cheers
Richard.



Neredbojias 11-09-2004 08:57 PM

Re: spaces in image names
 
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.

--
Neredbojias
Contrary to popular belief, it is believable.


All times are GMT. The time now is 12:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.