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. Advertisements

  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. Advertisements

  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. Advertisements

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. Christopher Richards

    Object ID embed and validation??

    Christopher Richards, Jan 18, 2005, in forum: HTML
    Replies:
    15
    Views:
    1,435
    Leif K-Brooks
    Jan 20, 2005
  2. Arne Nordmann
    Replies:
    0
    Views:
    691
    Arne Nordmann
    Jun 28, 2004
  3. Mardagg
    Replies:
    0
    Views:
    1,009
    Mardagg
    May 12, 2006
  4. Mardagg
    Replies:
    0
    Views:
    856
    Mardagg
    May 12, 2006
  5. milof83

    svg to svg saving problem

    milof83, Aug 18, 2006, in forum: Java
    Replies:
    1
    Views:
    1,192
    Roland de Ruiter
    Aug 18, 2006
  6. NarpatSingh
    Replies:
    0
    Views:
    928
    NarpatSingh
    Jan 17, 2007
  7. Replies:
    2
    Views:
    805
    Arndt Roger Schneider
    Dec 14, 2009
  8. dutzend

    detect parent object id from embed svg

    dutzend, Jul 18, 2007, in forum: Javascript
    Replies:
    0
    Views:
    177
    dutzend
    Jul 18, 2007
Loading...