![]() |
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 |
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. |
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. |
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 03:58 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.