Poking around a bit, I found this previous thread [1] of discussion here. I
don't quite remember the conclusion if there was one, but it looks as though
the need to use try and catch for getSVGDocument()  and contentDocument may
no longer be needed. I think that until IE/native provides filter and SMIL
support and IE6 through 8 are phased out we'll have to assume that at least
some users are still using ASV - fortunately it is a pretty robust
implementation and handles most of what a developer can think to throw at
it. This would tend, I think, to recommend the former rather than the
latter, unless someone sees a) a difference between the two or b) knows of a
modern browser that doesn't handle getSVGDocument()  .

 

Regards

David

 

[1] http://permalink.gmane.org/gmane.text.xml.svg.devel/45621

 

From: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com]
On Behalf Of Cameron Laird
Sent: Sunday, August 28, 2011 5:07 PM
To: svg-developers@yahoogroups.com
Subject: Re: [svg-developers] how to get and set from one object to another?

 

  

On Sun, Aug 28, 2011 at 01:02:58PM -0400, David Dailey wrote:
.
.
.
> Do getSVGDocument() and contentDocument do exactly the same thing? It
would
> appear that they do. I used to avoid the latter since it seemed to only
work
> in Firefox (which it seems didn't support getSVGDocument() in some
contexts
> in olden days), but browsers seem happy with either now (though I didn't
try
> ASV).
.
.
.
Me, too. I don't know the answer. Google has code which uses
one, and refers to the other in an accompanying comment. On
the whole, right now I feel slightly more inclined to use 
contentDocument--note, though, that I would have given a differ-
ent answer yesterday. I have *not* found a rigorous comparison
of the two.





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



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

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

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

Reply via email to