Hi, there are a number of different questions sort of bound up with the issues 
of cross-browser compatibility depending upon whether:

1. it is standalone svg (.svg) 
2. it is embedded in HTML using <embed>, <iframe>, <object> or <image>
3. it is inlined in HTML (as in the two links you provided)

In any case the advice on syntactic considerations provided by Jonathan Watt at 
http://jwatt.org/svg/authoring/ is recommended reading.

In case 1. other than making sure the syntax is properly cross-browser (there 
were some idiosyncracies with the Adobe plugin that never made their way into 
the standards), the only issue that really remains, I think, is whether certain 
features (like filters or SMIL on a broad level or like feDisplacemnent and 
feFlood at a more focused level) are supported in a certain browser. Jeff 
Schiller maintains a nice comparison for this at 
http://www.codedread.com/svg-support.php . 

2. There are some real idiosyncracies here: (I'm working from memory here, but 
) for the Adobe plugin 3.03, a security problem arose using script in 
conjunction with <object> that made them turn off support for that. Hence it is 
simplest to just use <embed>. Some have claimed success scripting back and 
forth between HTML DOM and SVG DOM using <iframe> but my experiments a couple 
of years ago were not pleasant 
(http://srufaculty.sru.edu/david.dailey/svg/ObjectTest.htm ) . I recently 
discovered that someone had found a workaround for the Adobe <object> problem, 
involving <param> -- see for example : here 
http://srufaculty.sru.edu/david.dailey/svg/objectSVG.html . If it avoids the 
security issue that Adobe encountered, I don't know if it exposes the same risk 
that caused them to disable scripting through <object>. Does anybody know about 
that?

3. I have in the past considered cross-browser inlining to be so hideously 
gnarly that I have simply avoided it in favor of <embed>.  The problem is, as I 
understand it (only partially), that IE does not act like an XHTML viewer. 
Hence the standard inlining that one would do in Safari, Opera, or FF, just 
doesn't work in IE. Check Jeff Schiller's advice at 
http://blog.codedread.com/archives/2006/01/13/inlaying-svg-with-html/ for some 
other suggestions, since it looks like he's researched the problem pretty 
carefully.

Another note is that the Adobe viewer for svg is not being maintained (actively 
worked on by Adobe) and that the Renesis plugin  provides now, almost as much 
support as (for example) Safari as per Jeff's chart. I don't know how well it 
handles inlining (which seems to be a feature of IE rather than the ASV plugin) 
or whether it makes the support for scripting with <object> easier, but if 
you're in a position to control your audience's browser, then consider Opera 
(or one of the others), and if you're somehow locked into with IE, and you 
don't yet need filters or smil, then it might be time to migrate to Renesis.

I realize that most of this information is probably not what you were asking 
about, but the question of how to make SVG work across browsers fragments into 
sub-questions a good deal depending on how one wishes to do it. Also take a 
look at http://srufaculty.sru.edu/david.dailey/svg/SVGAnimations.htm in which 
there are several hundred diverse examples most of which are working in at 
least Opera and IE/ASV meaning that as Safari and FF phase in support for 
filters and animation -- these examples usually end up working in those 
browsers as well. Some more modern examples (often with improved coding 
practices) can be found from there at 
http://srufaculty.sru.edu/david.dailey/svg/newstuff/Newlist.htm .


cheers,
David


  ----- Original Message ----- 
  From: cwflamont 
  To: [email protected] 
  Sent: Monday, June 30, 2008 6:54 AM
  Subject: [svg-developers] Providing for multiple browsers


  Could someone please point me towards recent thinking on how to get
  SVG content to download and display properly in Multiple browsers?

  The best I can find so far is at: 

  http://wiki.svg.org/Inline_SVG

  but even then I find that it needs to be stored as an .html file for
  it download and display properly in Internet Explorer(7) but as an
  .xhtml to work with Firefox(3.0) & Opera(9.5).

  I find that if I try to open an .xhtml file in IE, it opens it in Ff.
  This is despite doing the registry item deletion (to do with IE6 + IE7
  Beta) I found somewhere.

  The similar, but more elaborate example at:

  http://jwatt.org/svg/demos/xhtml-with-inline-svg.xhtml

  works less well for me, in that even when given an .html suffix it
  still does not display the SVG in Explorer.

  Does referencing the SVG as an <object/> make things better or worse? 

  Clue?



   

[Non-text portions of this message have been removed]


------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to