SVG, Embed and validation issues

Discussion in 'HTML' started by The Doormouse, May 5, 2004.

  1. I do not understand why "Object" will validate, but not work in my
    browsers, while stinky "embed" won't validate and works in IE6.

    The code is correct, yet both browsers barf it all up. Feh.

    My browsers are IE6 and Firefox - so much for "leaping boldly into the
    future". I am really disappointed that XHTML 1.0, particularly, does not
    play nice with SVG.

    The Doormouse

    --
    The Doormouse cannot be reached by e-mail without her permission.
     
    The Doormouse, May 5, 2004
    #1
    1. Advertising

  2. The Doormouse wrote:

    > I do not understand why "Object" will validate, but not work in my
    > browsers


    Because you're not using it properly. Post the code.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, May 5, 2004
    #2
    1. Advertising

  3. Toby A Inkster <> wrote:

    > Because you're not using it properly. Post the code.


    This doesn't work, but validates:
    <p><object width="162" height="36">
    <param name="src" value="sample.svg">
    </object></p>


    This works, but does not validate:
    <p><embed src="sample.svg" width="162" height="36" type="image/svg-
    xml"</p>

    The Doormouse

    --
    The Doormouse cannot be reached by e-mail without her permission.
     
    The Doormouse, May 5, 2004
    #3
  4. The Doormouse

    Steve Pugh Guest

    The Doormouse <> wrote:

    >Toby A Inkster <> wrote:
    >
    >> Because you're not using it properly. Post the code.

    >
    >This doesn't work, but validates:
    ><p><object width="162" height="36">
    > <param name="src" value="sample.svg">
    ></object></p>


    <OBJECT type="image/svg+xml" DATA="sample.svg" width="162"
    height="36">
    Sorry, no SVG for you, here's a GIF instead: <img src="sample.gif"
    alt="Hi!">
    </OBJECT>

    Works in Win IE 5+ with the Adobe SVG plugin. I don't have SVG plugins
    installed for any other browsers so can't test, but equivalent syntax
    for other media works in Gecko (and sometimes in Opera).

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, May 5, 2004
    #4
  5. Thank you, Steve - that was it!
    It works and validates.

    My version of GoLive (5) does not insert the correct code.
    I wonder if GoLive CS will?

    The Doormouse

    --
    The Doormouse cannot be reached by e-mail without her permission.
     
    The Doormouse, May 5, 2004
    #5
    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. Arne Nordmann
    Replies:
    0
    Views:
    533
    Arne Nordmann
    Jun 28, 2004
  2. Mardagg
    Replies:
    0
    Views:
    810
    Mardagg
    May 12, 2006
  3. Mardagg
    Replies:
    0
    Views:
    669
    Mardagg
    May 12, 2006
  4. milof83

    svg to svg saving problem

    milof83, Aug 18, 2006, in forum: Java
    Replies:
    1
    Views:
    837
    Roland de Ruiter
    Aug 18, 2006
  5. Helmut Jarausch

    Re: svg-chart 1.1 SVG Charting Library

    Helmut Jarausch, May 20, 2008, in forum: Python
    Replies:
    0
    Views:
    475
    Helmut Jarausch
    May 20, 2008
Loading...

Share This Page