Loading ...
Sorry, an error occurred while loading the content.

38328Fallback with SVG embedded in HTML on Safari

Expand Messages
  • Antoine Quint
    Jan 1, 2004

      I've been trying to use the HTML <object> element to embed SVG in an
      HTML page with a fallback PNG image if the SVG mime-type cannot be
      handled by the browser. So far, I've experimented with:

      <object data="img/animated_logo.svg" width="230" height="550"
      <img src="img/static_logo.png" width="230" height="550" alt="static
      fallback for animated SVG version" />

      I managed to get this to work in the latest IE Mac, Camino but not with
      the latest Safari. Is my code wrong, or is Safari just lame about this?

      Also, does anyone know if this works on IE 5.5 and 6 on Windows? Thanks
      a bunch,


      p.s. Jim, I know you wouldn't recommend using <object> in the first
      place, this is my penance for going my own way!
      Antoine Quint <aq@...>
      W3C SVG Working Group Invited Expert
      SVG Consulting, Teaching and Outsourcing
      Fuchsia Design <http://www.fuchsia-design.com/>
    • Show all 5 messages in this topic