spaces in image names

Discussion in 'HTML' started by Jeff Thies, Nov 9, 2004.

  1. Jeff Thies

    Jeff Thies Guest

    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
    Jeff Thies, Nov 9, 2004
    #1
    1. Advertising

  2. Jeff Thies

    brucie Guest

    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.
    brucie, Nov 9, 2004
    #2
    1. Advertising

  3. Jeff Thies

    rf Guest

    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.
    rf, Nov 9, 2004
    #3
  4. Jeff Thies

    Neredbojias Guest

    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.
    Neredbojias, Nov 9, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John B. Matthews
    Replies:
    4
    Views:
    667
    John B. Matthews
    Sep 12, 2008
  2. Roedy Green
    Replies:
    3
    Views:
    623
  3. Tomasz Chmielewski

    [CSS] how can I show spaces as spaces?

    Tomasz Chmielewski, Sep 5, 2009, in forum: HTML
    Replies:
    21
    Views:
    1,596
    Jan C. Faerber
    Sep 10, 2009
  4. Tomasz Chmielewski

    how can I show spaces as spaces, part 2

    Tomasz Chmielewski, Sep 9, 2009, in forum: HTML
    Replies:
    14
    Views:
    874
    Jan C. Faerber
    Sep 10, 2009
  5. johkar
    Replies:
    2
    Views:
    2,884
    Mayeul
    Dec 10, 2009
Loading...

Share This Page